From 2ea3415540fc0193c1f35aeb7b355516ee94e9b6 Mon Sep 17 00:00:00 2001 From: Daniel Dulaney Date: Fri, 16 Jul 2021 14:00:59 -0400 Subject: [PATCH] Add the IPV6_V6ONLY sockopt --- src/sys/socket/sockopt.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sys/socket/sockopt.rs b/src/sys/socket/sockopt.rs index e2f2cafe3c..69fe479aa2 100644 --- a/src/sys/socket/sockopt.rs +++ b/src/sys/socket/sockopt.rs @@ -330,6 +330,7 @@ sockopt_impl!(Both, UdpGsoSegment, libc::SOL_UDP, libc::UDP_SEGMENT, libc::c_int sockopt_impl!(Both, UdpGroSegment, libc::IPPROTO_UDP, libc::UDP_GRO, bool); #[cfg(any(target_os = "android", target_os = "fuchsia", target_os = "linux"))] sockopt_impl!(Both, RxqOvfl, libc::SOL_SOCKET, libc::SO_RXQ_OVFL, libc::c_int); +sockopt_impl!(Both, Ipv6V6Only, libc::IPPROTO_IPV6, libc::IPV6_V6ONLY, bool); #[cfg(any(target_os = "android", target_os = "linux"))] #[derive(Copy, Clone, Debug)]