-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bfd: use recvmsg so that multihop sessions actually work
For multihop sessions to work, it's necessary to extract both the source and destination addresses from each received packet. Achieving this requires using lower-level APIs not directly supported by Tokio or Rust's standard library. This commit introduces the usage of the recvmsg() API from the nix crate to get that done. As result, multihop sessions now work normally. Additionally, the nix version has been updated to 0.26 to incorporate a necessary bug fix [1]. [1] nix-rust/nix#1964 Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
- Loading branch information
Showing
4 changed files
with
168 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters