@@ -2204,7 +2204,7 @@ impl crate::Socket {
2204
2204
///
2205
2205
/// [`set_freebind_v4`]: crate::Socket::set_freebind_v4
2206
2206
#[ 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 > {
2208
2208
unsafe {
2209
2209
getsockopt :: < c_int > ( self . as_raw ( ) , libc:: SOL_IPV6 , libc:: IPV6_FREEBIND )
2210
2210
. map ( |freebind| freebind != 0 )
@@ -2230,7 +2230,7 @@ impl crate::Socket {
2230
2230
/// fn enable_freebind(socket: &Socket) -> io::Result<()> {
2231
2231
/// match socket.domain()? {
2232
2232
/// Domain::IPV4 => socket.set_freebind_v4(true)?,
2233
- /// Domain::IPV6 => socket.set_freebind_ipv6 (true)?,
2233
+ /// Domain::IPV6 => socket.set_freebind_v6 (true)?,
2234
2234
/// _ => return Err(Error::new(ErrorKind::Other, "unsupported domain")),
2235
2235
/// };
2236
2236
/// Ok(())
@@ -2242,7 +2242,7 @@ impl crate::Socket {
2242
2242
/// # }
2243
2243
/// ```
2244
2244
#[ 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 < ( ) > {
2246
2246
unsafe {
2247
2247
setsockopt (
2248
2248
self . as_raw ( ) ,
0 commit comments