Skip to content

Commit d66c0c1

Browse files
committed
Enable additional socket timestamping flags
1 parent 6c91a14 commit d66c0c1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
1818
- Added `LocalPeerPid` to `nix::sys::socket::sockopt` for macOS. ([#1967](https://github.com/nix-rust/nix/pull/1967))
1919
- Added `TFD_TIMER_CANCEL_ON_SET` to `::nix::sys::time::TimerSetTimeFlags` on Linux and Android.
2020
([#2040](https://github.com/nix-rust/nix/pull/2040))
21+
- Added `SOF_TIMESTAMPING_OPT_ID` and `SOF_TIMESTAMPING_OPT_TSONLY` to `nix::sys::socket::TimestampingFlag`.
22+
([#2048](https://github.com/nix-rust/nix/pull/2048))
2123

2224
### Changed
2325

src/sys/socket/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,10 @@ libc_bitflags! {
255255
SOF_TIMESTAMPING_RX_HARDWARE;
256256
/// Collect receiving timestamps as reported by software
257257
SOF_TIMESTAMPING_RX_SOFTWARE;
258+
/// Generate a unique identifier along with each transmitted packet
259+
SOF_TIMESTAMPING_OPT_ID;
260+
/// Return transmit timestamps alongside an empty packet instead of the original packet
261+
SOF_TIMESTAMPING_OPT_TSONLY;
258262
}
259263
}
260264

0 commit comments

Comments
 (0)