diff options
author | Jonathan de Jong <jonathandejong02@gmail.com> | 2022-11-14 09:56:02 +0000 |
---|---|---|
committer | Jonathan de Jong <jonathandejong02@gmail.com> | 2022-11-23 10:48:48 +0000 |
commit | e9f07eea61d78dd1b4555e0e7814ab1078cb10d9 (patch) | |
tree | f4911e1e919175e08b1e631c3803021f3c5fc9fb /src/sys | |
parent | a75a3494cebde67764f523930b77ddceb902f57f (diff) | |
download | nix-e9f07eea61d78dd1b4555e0e7814ab1078cb10d9.zip |
add IpMtu sockopt
Diffstat (limited to 'src/sys')
-rw-r--r-- | src/sys/socket/sockopt.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/sys/socket/sockopt.rs b/src/sys/socket/sockopt.rs index 08b73aaa..7489858e 100644 --- a/src/sys/socket/sockopt.rs +++ b/src/sys/socket/sockopt.rs @@ -925,6 +925,15 @@ sockopt_impl!( libc::IPV6_RECVERR, bool ); +#[cfg(any(target_os = "android", target_os = "linux"))] +sockopt_impl!( + /// Fetch the current system-estimated Path MTU. + IpMtu, + GetOnly, + libc::IPPROTO_IP, + libc::IP_MTU, + libc::c_int +); #[cfg(any(target_os = "android", target_os = "freebsd", target_os = "linux"))] sockopt_impl!( /// Set or retrieve the current time-to-live field that is used in every |