-
Notifications
You must be signed in to change notification settings - Fork 679
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added FreeBSD's SCM_REALTIME and SCM_MONOTONIC into sys::socket::Cont…
…rolMessageOwned (#2187) * Added FreeBSD's SCM_REALTIME and SCM_MONOTONIC into sys::socket::ControlMessageOwned. * Creating a SocketTimestamp enum for the SO_TS_CLOCK setsockopt for FreeBSD. * Fixing whitespace * Fixing CI error on cfg attributes * Removing legacy doc attributes * Formatting cleanup * Updating changelog * Adding tests for new TsClock setsockopt enum and the two new packet timestamp control messages for FreeBSD * Replacing an assert_eq with an assert in new tests. * Removing qemu ignore for new FreeBSD tests * Giving new FreeBSD timestamping tests each a unique socket * Updating monotonic packet timestamp test to account for monotonicity * Moving test ports again to line up with changes in #2196 * Attempting checks again * Wrapping ptr::read_unaligned calls in unsafe blocks
- Loading branch information
Showing
5 changed files
with
280 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- Added the `::nix::sys::socket::SocketTimestamp` enum for configuring the `TsClock` (a.k.a `SO_TS_CLOCK`) sockopt | ||
- Added FreeBSD's `ScmRealtime` and `ScmMonotonic` as new options in `::nix::sys::socket::ControlMessageOwned` |
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