@@ -844,6 +844,7 @@ pub(crate) fn ipv6_original_dst(fd: BorrowedFd<'_>) -> io::Result<SocketAddrV6>
844844 windows,
845845 target_os = "espidf" ,
846846 target_os = "haiku" ,
847+ target_os = "redox" ,
847848 target_os = "vita"
848849) ) ) ]
849850#[ inline]
@@ -856,6 +857,7 @@ pub(crate) fn set_ipv6_tclass(fd: BorrowedFd<'_>, value: u32) -> io::Result<()>
856857 windows,
857858 target_os = "espidf" ,
858859 target_os = "haiku" ,
860+ target_os = "redox" ,
859861 target_os = "vita"
860862) ) ) ]
861863#[ inline]
@@ -874,13 +876,23 @@ pub(crate) fn tcp_nodelay(fd: BorrowedFd<'_>) -> io::Result<bool> {
874876}
875877
876878#[ inline]
877- #[ cfg( not( any( target_os = "openbsd" , target_os = "haiku" , target_os = "nto" ) ) ) ]
879+ #[ cfg( not( any(
880+ target_os = "openbsd" ,
881+ target_os = "haiku" ,
882+ target_os = "nto" ,
883+ target_os = "redox"
884+ ) ) ) ]
878885pub ( crate ) fn set_tcp_keepcnt ( fd : BorrowedFd < ' _ > , count : u32 ) -> io:: Result < ( ) > {
879886 setsockopt ( fd, c:: IPPROTO_TCP , c:: TCP_KEEPCNT , count)
880887}
881888
882889#[ inline]
883- #[ cfg( not( any( target_os = "openbsd" , target_os = "haiku" , target_os = "nto" ) ) ) ]
890+ #[ cfg( not( any(
891+ target_os = "openbsd" ,
892+ target_os = "haiku" ,
893+ target_os = "nto" ,
894+ target_os = "redox"
895+ ) ) ) ]
884896pub ( crate ) fn tcp_keepcnt ( fd : BorrowedFd < ' _ > ) -> io:: Result < u32 > {
885897 getsockopt ( fd, c:: IPPROTO_TCP , c:: TCP_KEEPCNT )
886898}
@@ -900,14 +912,24 @@ pub(crate) fn tcp_keepidle(fd: BorrowedFd<'_>) -> io::Result<Duration> {
900912}
901913
902914#[ inline]
903- #[ cfg( not( any( target_os = "openbsd" , target_os = "haiku" , target_os = "nto" ) ) ) ]
915+ #[ cfg( not( any(
916+ target_os = "openbsd" ,
917+ target_os = "haiku" ,
918+ target_os = "nto" ,
919+ target_os = "redox"
920+ ) ) ) ]
904921pub ( crate ) fn set_tcp_keepintvl ( fd : BorrowedFd < ' _ > , duration : Duration ) -> io:: Result < ( ) > {
905922 let secs: c:: c_uint = duration_to_secs ( duration) ?;
906923 setsockopt ( fd, c:: IPPROTO_TCP , c:: TCP_KEEPINTVL , secs)
907924}
908925
909926#[ inline]
910- #[ cfg( not( any( target_os = "openbsd" , target_os = "haiku" , target_os = "nto" ) ) ) ]
927+ #[ cfg( not( any(
928+ target_os = "openbsd" ,
929+ target_os = "haiku" ,
930+ target_os = "nto" ,
931+ target_os = "redox"
932+ ) ) ) ]
911933pub ( crate ) fn tcp_keepintvl ( fd : BorrowedFd < ' _ > ) -> io:: Result < Duration > {
912934 let secs: c:: c_uint = getsockopt ( fd, c:: IPPROTO_TCP , c:: TCP_KEEPINTVL ) ?;
913935 Ok ( Duration :: from_secs ( secs as u64 ) )
0 commit comments