summaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
author0/0 <zero@imaskeleton.me>2021-08-26 21:37:26 -0600
committer0/0 <zero@imaskeleton.me>2021-08-26 21:37:26 -0600
commitd5fdacbb4f7246bc47c73c7908ccce2254839e1c (patch)
treeb1cee9932f8fcb222c55f7d478cebabf5dc8b22b /src/sys
parentdab7332eabed8646f6d01a0d0688b4d1438accb4 (diff)
downloadnix-d5fdacbb4f7246bc47c73c7908ccce2254839e1c.zip
add `TcpRepair` to sockopt
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/socket/sockopt.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sys/socket/sockopt.rs b/src/sys/socket/sockopt.rs
index ca8fb1a0..a937226f 100644
--- a/src/sys/socket/sockopt.rs
+++ b/src/sys/socket/sockopt.rs
@@ -267,6 +267,10 @@ sockopt_impl!(Both, TcpKeepAlive, libc::IPPROTO_TCP, libc::TCP_KEEPALIVE, u32);
sockopt_impl!(Both, TcpKeepIdle, libc::IPPROTO_TCP, libc::TCP_KEEPIDLE, u32);
#[cfg(not(target_os = "openbsd"))]
sockopt_impl!(Both, TcpKeepCount, libc::IPPROTO_TCP, libc::TCP_KEEPCNT, u32);
+#[cfg(any(target_os = "android",
+ target_os = "fuchsia",
+ target_os = "linux"))]
+sockopt_impl!(Both, TcpRepair, libc::IPPROTO_TCP, libc::TCP_REPAIR, u32);
#[cfg(not(target_os = "openbsd"))]
sockopt_impl!(Both, TcpKeepInterval, libc::IPPROTO_TCP, libc::TCP_KEEPINTVL, u32);
#[cfg(any(target_os = "fuchsia", target_os = "linux"))]