Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional socket timestamping flags #2606

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/2606.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add additional socket timestamping flags to `sys::socket::TimestampingFlag`.
13 changes: 13 additions & 0 deletions src/sys/socket/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,21 @@ libc_bitflags! {
SOF_TIMESTAMPING_RX_SOFTWARE;
/// Generate a unique identifier along with each transmitted packet
SOF_TIMESTAMPING_OPT_ID;
/// Collect transmitting timestamps prior to entering the packet scheduler
SOF_TIMESTAMPING_TX_SCHED;
/// Collect transmitting timestamps when all data in the send buffer has been acknowledged
SOF_TIMESTAMPING_TX_ACK;
/// Support receive control messages for all timestamped packets
SOF_TIMESTAMPING_OPT_CMSG;
/// Return transmit timestamps alongside an empty packet instead of the original packet
SOF_TIMESTAMPING_OPT_TSONLY;
/// Collect optional stats that are obtained along with the transmit timestamps
SOF_TIMESTAMPING_OPT_STATS;
/// Enable the SCM_TIMESTAMPING_PKTINFO control message for incoming packets with hardware timestamps
SOF_TIMESTAMPING_OPT_PKTINFO;
/// Request both hardware and software timestamps for outgoing packets when SOF_TIMESTAMPING_TX_HARDWARE and
/// SOF_TIMESTAMPING_TX_SOFTWARE are enabled at the same time
SOF_TIMESTAMPING_OPT_TX_SWHW;
}
}

Expand Down
Loading