bdf5455a3f4faddef8a5e2fbcd0032dcb3077afc
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.
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%