Skip to content

Commit 5400c6e

Browse files
committed
Add more FreeBSD TCP_ constants
1 parent 75df0e1 commit 5400c6e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/unix/newlib/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,11 @@ pub const IFF_MULTICAST: ::c_int = 0x8000; // supports multicast
520520

521521
pub const TCP_NODELAY: ::c_int = 8193;
522522
pub const TCP_MAXSEG: ::c_int = 8194;
523+
pub const TCP_NOPUSH: ::c_int = 4;
524+
pub const TCP_NOOPT: ::c_int = 8;
525+
pub const TCP_KEEPIDLE: ::c_int = 256;
526+
pub const TCP_KEEPINTVL: ::c_int = 512;
527+
pub const TCP_KEEPCNT: ::c_int = 1024;
523528

524529
pub const IP_TOS: ::c_int = 3;
525530
pub const IP_TTL: ::c_int = 8;

0 commit comments

Comments
 (0)