summaryrefslogtreecommitdiff
path: root/src/unix/newlib/mod.rs
diff options
context:
space:
mode:
authorleo60228 <iakornfeld@gmail.com>2019-05-09 19:10:38 -0400
committerleo60228 <iakornfeld@gmail.com>2019-05-09 19:10:38 -0400
commit5400c6e695ee30e687c9f2af26a2a29e4c6d697d (patch)
tree938d944d1f18d5eb957a1127df0462134417ac34 /src/unix/newlib/mod.rs
parent75df0e19eb27b96e74a1954537279a234507633c (diff)
downloadrust-libc-5400c6e695ee30e687c9f2af26a2a29e4c6d697d.tar.gz
Add more FreeBSD TCP_ constants
Diffstat (limited to 'src/unix/newlib/mod.rs')
-rw-r--r--src/unix/newlib/mod.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/unix/newlib/mod.rs b/src/unix/newlib/mod.rs
index 5991b99a45..65f32ebcf9 100644
--- a/src/unix/newlib/mod.rs
+++ b/src/unix/newlib/mod.rs
@@ -520,6 +520,11 @@ pub const IFF_MULTICAST: ::c_int = 0x8000; // supports multicast
pub const TCP_NODELAY: ::c_int = 8193;
pub const TCP_MAXSEG: ::c_int = 8194;
+pub const TCP_NOPUSH: ::c_int = 4;
+pub const TCP_NOOPT: ::c_int = 8;
+pub const TCP_KEEPIDLE: ::c_int = 256;
+pub const TCP_KEEPINTVL: ::c_int = 512;
+pub const TCP_KEEPCNT: ::c_int = 1024;
pub const IP_TOS: ::c_int = 3;
pub const IP_TTL: ::c_int = 8;