summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Spencer <spencercw@gmail.com>2023-06-02 15:28:12 +0100
committerChris Spencer <spencercw@gmail.com>2023-06-02 16:04:23 +0100
commitd66c0c1d5a8c7515f699428d063f179328aff32e (patch)
tree885766d1b5f3fa1f88a87510747b13b89faa6079
parent6c91a149327c987a2644d2a662b49ef7339485c9 (diff)
downloadnix-d66c0c1d5a8c7515f699428d063f179328aff32e.zip
Enable additional socket timestamping flags
-rw-r--r--CHANGELOG.md2
-rw-r--r--src/sys/socket/mod.rs4
2 files changed, 6 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c87abc4b..7cbd8d37 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -18,6 +18,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
- Added `LocalPeerPid` to `nix::sys::socket::sockopt` for macOS. ([#1967](https://github.com/nix-rust/nix/pull/1967))
- Added `TFD_TIMER_CANCEL_ON_SET` to `::nix::sys::time::TimerSetTimeFlags` on Linux and Android.
([#2040](https://github.com/nix-rust/nix/pull/2040))
+- Added `SOF_TIMESTAMPING_OPT_ID` and `SOF_TIMESTAMPING_OPT_TSONLY` to `nix::sys::socket::TimestampingFlag`.
+ ([#2048](https://github.com/nix-rust/nix/pull/2048))
### Changed
diff --git a/src/sys/socket/mod.rs b/src/sys/socket/mod.rs
index 84812205..5ecfbe32 100644
--- a/src/sys/socket/mod.rs
+++ b/src/sys/socket/mod.rs
@@ -255,6 +255,10 @@ libc_bitflags! {
SOF_TIMESTAMPING_RX_HARDWARE;
/// Collect receiving timestamps as reported by software
SOF_TIMESTAMPING_RX_SOFTWARE;
+ /// Generate a unique identifier along with each transmitted packet
+ SOF_TIMESTAMPING_OPT_ID;
+ /// Return transmit timestamps alongside an empty packet instead of the original packet
+ SOF_TIMESTAMPING_OPT_TSONLY;
}
}