summaryrefslogtreecommitdiff
path: root/src/unix/linux_like/linux/mod.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-08-27 04:33:50 +0000
committerbors <bors@rust-lang.org>2022-08-27 04:33:50 +0000
commita5553c26ca3bcf1311373d9b9c0ca9ebffed215d (patch)
tree984b277f53cafc8001e4bd1646fc42c1d26d9d42 /src/unix/linux_like/linux/mod.rs
parent75dd59edacd4251a7c9e8e5cc748192adcf708aa (diff)
parent075ca1103f2d11c9f9b7fda0c0ae9f03c71b5dcf (diff)
downloadrust-libc-a5553c26ca3bcf1311373d9b9c0ca9ebffed215d.tar.gz
Auto merge of #2881 - folkertdev:sof-timestamping-add-missing, r=JohnTitor
add missing SOF_TIMESTAMPING flags These flags are useful for send (tx) timestamping in practice, and used by `@tweedegolf's` work on PTP and NTP
Diffstat (limited to 'src/unix/linux_like/linux/mod.rs')
-rw-r--r--src/unix/linux_like/linux/mod.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/unix/linux_like/linux/mod.rs b/src/unix/linux_like/linux/mod.rs
index 6d078aac32..a9a87691aa 100644
--- a/src/unix/linux_like/linux/mod.rs
+++ b/src/unix/linux_like/linux/mod.rs
@@ -2681,6 +2681,14 @@ pub const SOF_TIMESTAMPING_RX_SOFTWARE: ::c_uint = 1 << 3;
pub const SOF_TIMESTAMPING_SOFTWARE: ::c_uint = 1 << 4;
pub const SOF_TIMESTAMPING_SYS_HARDWARE: ::c_uint = 1 << 5;
pub const SOF_TIMESTAMPING_RAW_HARDWARE: ::c_uint = 1 << 6;
+pub const SOF_TIMESTAMPING_OPT_ID: ::c_uint = 1 << 7;
+pub const SOF_TIMESTAMPING_TX_SCHED: ::c_uint = 1 << 8;
+pub const SOF_TIMESTAMPING_TX_ACK: ::c_uint = 1 << 9;
+pub const SOF_TIMESTAMPING_OPT_CMSG: ::c_uint = 1 << 10;
+pub const SOF_TIMESTAMPING_OPT_TSONLY: ::c_uint = 1 << 11;
+pub const SOF_TIMESTAMPING_OPT_STATS: ::c_uint = 1 << 12;
+pub const SOF_TIMESTAMPING_OPT_PKTINFO: ::c_uint = 1 << 13;
+pub const SOF_TIMESTAMPING_OPT_TX_SWHW: ::c_uint = 1 << 14;
pub const SOF_TXTIME_DEADLINE_MODE: u32 = 1 << 0;
pub const SOF_TXTIME_REPORT_ERRORS: u32 = 1 << 1;