Writing

Fixing FRR’s BFD daemon

3 posts · Aug 2026 to Sept 2026 · my PRs to FRR

Bugs I found and fixed in FRR’s bfdd, mostly while using it with xdp-bfd. Sixteen fixes are merged so far. One post covers all of them, and two of them have longer write-ups.

  1. bfdd losing sessions to a full buffer

    With more than about 40 to 58 sessions, depending on config, bfdd silently lost sessions when it connected to a data plane, and lost delete messages when it shut down. Both came from the same 8KB buffer.

  2. bfdd dropping the data plane on a counters query

    Every second time I ran "show bfd peers counters", bfdd dropped its connection to the data plane. Two small bugs in how it read replies added up to it.

  3. My fixes to FRR’s BFD daemon

    Sixteen fixes to bfdd that have been merged into FRR so far. Most came from using bfdd with xdp-bfd, the rest from adding demand mode and authentication.