diff options
author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-05-25 16:33:30 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-25 16:33:30 +0900 |
commit | d791c50036f4faf64d5fa33a0ff7307ba09591ab (patch) | |
tree | 5f8f6b840de26de42c4c62c246d9214713ccbde7 | |
parent | 8684b554782619537aa6acadc28378293c86f96a (diff) | |
parent | 967dffee510042e3dcab179d5ce6d91bd36d1d55 (diff) | |
download | rust-libc-d791c50036f4faf64d5fa33a0ff7307ba09591ab.tar.gz |
Merge pull request #1776 from JohnTitor/tcp-keep
Add `TCP_KEEP{INTVL,CNT}` to macOS
-rw-r--r-- | src/unix/bsd/apple/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index 04e0837f7d..c03c644e83 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -2257,6 +2257,8 @@ pub const IPV6_RECVPKTINFO: ::c_int = 61; pub const TCP_NOPUSH: ::c_int = 4; pub const TCP_NOOPT: ::c_int = 8; pub const TCP_KEEPALIVE: ::c_int = 0x10; +pub const TCP_KEEPINTVL: ::c_int = 0x101; +pub const TCP_KEEPCNT: ::c_int = 0x102; /// Enable/Disable TCP Fastopen on this socket pub const TCP_FASTOPEN: ::c_int = 0x105; |