@@ -1189,12 +1189,12 @@ impl Socket {
11891189
11901190 /// Get the value of the `IP_TRANSPARENT` option on this socket.
11911191 ///
1192- /// For more information about this option, see [`set_ip_transparent `].
1192+ /// For more information about this option, see [`set_ip_transparent_v4 `].
11931193 ///
1194- /// [`set_ip_transparent `]: Socket::set_ip_transparent
1194+ /// [`set_ip_transparent_v4 `]: Socket::set_ip_transparent_v4
11951195 #[ cfg( all( feature = "all" , target_os = "linux" ) ) ]
11961196 #[ cfg_attr( docsrs, doc( cfg( all( feature = "all" , target_os = "linux" ) ) ) ) ]
1197- pub fn ip_transparent ( & self ) -> io:: Result < bool > {
1197+ pub fn ip_transparent_v4 ( & self ) -> io:: Result < bool > {
11981198 unsafe {
11991199 getsockopt :: < c_int > ( self . as_raw ( ) , sys:: IPPROTO_IP , libc:: IP_TRANSPARENT )
12001200 . map ( |transparent| transparent != 0 )
@@ -1218,7 +1218,7 @@ impl Socket {
12181218 /// requires that this option be set on the redirected socket.
12191219 #[ cfg( all( feature = "all" , target_os = "linux" ) ) ]
12201220 #[ cfg_attr( docsrs, doc( cfg( all( feature = "all" , target_os = "linux" ) ) ) ) ]
1221- pub fn set_ip_transparent ( & self , transparent : bool ) -> io:: Result < ( ) > {
1221+ pub fn set_ip_transparent_v4 ( & self , transparent : bool ) -> io:: Result < ( ) > {
12221222 unsafe {
12231223 setsockopt (
12241224 self . as_raw ( ) ,
0 commit comments