Skip to content

Commit d791c50

Browse files
authored
Merge pull request #1776 from JohnTitor/tcp-keep
Add `TCP_KEEP{INTVL,CNT}` to macOS
2 parents 8684b55 + 967dffe commit d791c50

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2257,6 +2257,8 @@ pub const IPV6_RECVPKTINFO: ::c_int = 61;
22572257
pub const TCP_NOPUSH: ::c_int = 4;
22582258
pub const TCP_NOOPT: ::c_int = 8;
22592259
pub const TCP_KEEPALIVE: ::c_int = 0x10;
2260+
pub const TCP_KEEPINTVL: ::c_int = 0x101;
2261+
pub const TCP_KEEPCNT: ::c_int = 0x102;
22602262
/// Enable/Disable TCP Fastopen on this socket
22612263
pub const TCP_FASTOPEN: ::c_int = 0x105;
22622264

0 commit comments

Comments
 (0)