Skip to content

Commit f82f5a9

Browse files
committed
sys::socket adding GetOnly TCP_FUNCTION_ALIAS for freebsd.
to complete `TCP_FUNCTION_BLK` as to get the alias name, if existent, of the TCP stack.
1 parent e7e9809 commit f82f5a9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/sys/socket/sockopt.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,17 @@ sockopt_impl!(
330330
libc::TCP_FUNCTION_BLK,
331331
libc::tcp_function_set
332332
);
333+
#[cfg(target_os = "freebsd")]
334+
#[cfg(feature = "net")]
335+
sockopt_impl!(
336+
#[cfg_attr(docsrs, doc(cfg(feature = "net")))]
337+
/// Query the alias name of the set of function of the socket's TCP stack.
338+
TcpFunctionAlias,
339+
GetOnly,
340+
libc::IPPROTO_TCP,
341+
libc::TCP_FUNCTION_ALIAS,
342+
libc::tcp_function_set
343+
);
333344
sockopt_impl!(
334345
#[cfg_attr(docsrs, doc(cfg(feature = "net")))]
335346
/// Used to disable Nagle's algorithm.

0 commit comments

Comments
 (0)