@@ -2204,7 +2204,7 @@ impl crate::Socket {
22042204 ///
22052205 /// [`set_freebind_v4`]: crate::Socket::set_freebind_v4
22062206 #[ cfg( all( feature = "all" , any( target_os = "android" , target_os = "linux" ) ) ) ]
2207- pub fn freebind_ipv6 ( & self ) -> io:: Result < bool > {
2207+ pub fn freebind_v6 ( & self ) -> io:: Result < bool > {
22082208 unsafe {
22092209 getsockopt :: < c_int > ( self . as_raw ( ) , libc:: SOL_IPV6 , libc:: IPV6_FREEBIND )
22102210 . map ( |freebind| freebind != 0 )
@@ -2230,7 +2230,7 @@ impl crate::Socket {
22302230 /// fn enable_freebind(socket: &Socket) -> io::Result<()> {
22312231 /// match socket.domain()? {
22322232 /// Domain::IPV4 => socket.set_freebind_v4(true)?,
2233- /// Domain::IPV6 => socket.set_freebind_ipv6 (true)?,
2233+ /// Domain::IPV6 => socket.set_freebind_v6 (true)?,
22342234 /// _ => return Err(Error::new(ErrorKind::Other, "unsupported domain")),
22352235 /// };
22362236 /// Ok(())
@@ -2242,7 +2242,7 @@ impl crate::Socket {
22422242 /// # }
22432243 /// ```
22442244 #[ cfg( all( feature = "all" , any( target_os = "android" , target_os = "linux" ) ) ) ]
2245- pub fn set_freebind_ipv6 ( & self , freebind : bool ) -> io:: Result < ( ) > {
2245+ pub fn set_freebind_v6 ( & self , freebind : bool ) -> io:: Result < ( ) > {
22462246 unsafe {
22472247 setsockopt (
22482248 self . as_raw ( ) ,
0 commit comments