forked from nix-rust/nix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for DSCP and TTL / Hop Limit (nix-rust#2425)
* feat: add support for DSCP and TTL / Hop Limit * Support IP_RECVTTL and IPV6_RECVHOPLIMIT socket options and related control messages for recvmsg. * Support setting DSCP in control messages for both sendmsg and recvmsg. Signed-off-by: Bigo <[email protected]> * Add PR changelog * This is not supported on Freebsd * IPV6_RECVTCLASS not supported on freebsd * Properly limit IPV6_RECVTCLASS * Properly limit IP_TOS * Restrict everything to target_os linux * ... * Protect bind * Apply suggestions from code review Co-authored-by: SteveLauC <[email protected]> * Address PR comments * Run cargo fmt * Address further comments from PR * Run tests under qemu * Use libc from git * Disable qemu IPTOS / IPV6TCLASS tests on mips * Apply suggestions from code review Co-authored-by: SteveLauC <[email protected]> * Fix more code review suggestions * Fix missing renames in tests * Testing * Fixes * Fix freebsd * Trigger CI again * Trigger CI again * Use the same control message in linux and freebsd for ipv4ttl * test: remove a println --------- Signed-off-by: Bigo <[email protected]> Co-authored-by: SteveLauC <[email protected]>
- Loading branch information
Showing
6 changed files
with
507 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Improve support for extracting the TTL / Hop Limit from incoming packets | ||
and support for DSCP (ToS / Traffic Class). |
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
Oops, something went wrong.