Skip to content

Add struct sock_txtime and related flags #2415

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

Merged
merged 1 commit into from
Oct 12, 2021
Merged
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
19 changes: 19 additions & 0 deletions src/unix/linux_like/linux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,19 @@ s_no_extra_traits! {
}
}

cfg_if! {
if #[cfg(not(all(target_env = "musl", target_arch = "mips")))] {
s_no_extra_traits! {
// linux/net_tstamp.h
#[allow(missing_debug_implementations)]
pub struct sock_txtime {
pub clockid: ::clockid_t,
pub flags: ::__u32,
}
}
}
}

cfg_if! {
if #[cfg(libc_union)] {
s_no_extra_traits! {
Expand Down Expand Up @@ -2528,6 +2541,12 @@ 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;
cfg_if! {
if #[cfg(not(all(target_env = "musl", target_arch = "mips")))] {
pub const SOF_TXTIME_DEADLINE_MODE: u32 = 1 << 0;
pub const SOF_TXTIME_REPORT_ERRORS: u32 = 1 << 1;
}
}

// linux/if_alg.h
pub const ALG_SET_KEY: ::c_int = 1;
Expand Down