@@ -1189,12 +1189,12 @@ impl Socket {
1189
1189
1190
1190
/// Get the value of the `IP_TRANSPARENT` option on this socket.
1191
1191
///
1192
- /// For more information about this option, see [`set_ip_transparent `].
1192
+ /// For more information about this option, see [`set_ip_transparent_v4 `].
1193
1193
///
1194
- /// [`set_ip_transparent `]: Socket::set_ip_transparent
1194
+ /// [`set_ip_transparent_v4 `]: Socket::set_ip_transparent_v4
1195
1195
#[ cfg( all( feature = "all" , target_os = "linux" ) ) ]
1196
1196
#[ 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 > {
1198
1198
unsafe {
1199
1199
getsockopt :: < c_int > ( self . as_raw ( ) , sys:: IPPROTO_IP , libc:: IP_TRANSPARENT )
1200
1200
. map ( |transparent| transparent != 0 )
@@ -1218,7 +1218,7 @@ impl Socket {
1218
1218
/// requires that this option be set on the redirected socket.
1219
1219
#[ cfg( all( feature = "all" , target_os = "linux" ) ) ]
1220
1220
#[ 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 < ( ) > {
1222
1222
unsafe {
1223
1223
setsockopt (
1224
1224
self . as_raw ( ) ,
0 commit comments