Skip to content

Commit

Permalink
introduces FreeBSD's SO_TS_CLOCK into net::sys::socket::sockopt.
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Aug 26, 2023
1 parent a0613ba commit e01f5ae
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/sys/socket/sockopt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,16 @@ sockopt_impl!(
libc::SO_TIMESTAMPNS,
bool
);
#[cfg(target_os = "freebsd")]
sockopt_impl!(
/// Sets a specific timestamp format instead of the classic `SCM_TIMESTAMP`,
/// to follow up after `SO_TIMESTAMP` is set.
TsClock,
SetOnly,
libc::SOL_SOCKET,
libc::SO_TS_CLOCK,
i32
);
#[cfg(any(target_os = "android", target_os = "linux"))]
#[cfg(feature = "net")]
sockopt_impl!(
Expand Down

0 comments on commit e01f5ae

Please sign in to comment.