ktims bdf5455a3f Expand unit tests and fix bugs they found
Add unit tests for packet parsing/serialization, interval arithmetic, the
session state machine, validation discards, poll/final, the detection
watchdog, hook scripts, and socket binding.

Fixes:
- BfdAuth parsing subtracted the header from Auth Len twice; Auth Len
  includes the 2-byte header.
- A diagnostic code above 9 panicked the session task; map it to Reserved.
- script_runner panicked on non-UTF-8 script output; decode lossily.
- BfdError::InvalidFieldValue printed field and value swapped.
- BfdInterval now panics on values exceeding u32 microseconds instead of
  silently truncating, and gains checked_mul. Detection time computation
  saturates rather than panicking on remote-supplied multipliers.
2026-10-23 09:52:57 -07:00
2026-10-22 15:44:39 -07:00
S
Description
A BFD (Bidirectional Forwarding Detection) daemon in pure Rust, based on RFC5880 & RFC5881.
128 KiB
0 Stars 1 Watchers 0 Forks
Languages
Rust 99.3%
Dockerfile 0.7%