summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorleo60228 <iakornfeld@gmail.com>2019-05-09 19:02:53 -0400
committerleo60228 <iakornfeld@gmail.com>2019-05-09 19:02:53 -0400
commite3c95f143b215d3646e31c3996e75cb85a7ca1d3 (patch)
tree1c5a9c92bc40be527a220d8327ec9c83d3adc07a
parentc8e8ec6f23391348d857615a9563dd7e9ea7682b (diff)
downloadrust-libc-e3c95f143b215d3646e31c3996e75cb85a7ca1d3.tar.gz
Add IP_ and IPV6_
-rw-r--r--src/unix/newlib/mod.rs11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/unix/newlib/mod.rs b/src/unix/newlib/mod.rs
index 4151bfff77..f53d7f77ef 100644
--- a/src/unix/newlib/mod.rs
+++ b/src/unix/newlib/mod.rs
@@ -520,13 +520,20 @@ 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 IP_TOS: ::c_int = 7;
+pub const IP_TOS: ::c_int = 3;
pub const IP_TTL: ::c_int = 8;
-pub const IP_MULTICAST_LOOP: ::c_int = 9;
+pub const IP_MULTICAST_IF: ::c_int = 9;
pub const IP_MULTICAST_TTL: ::c_int = 10;
+pub const IP_MULTICAST_LOOP: ::c_int = 11;
pub const IP_ADD_MEMBERSHIP: ::c_int = 11;
pub const IP_DROP_MEMBERSHIP: ::c_int = 12;
+pub const IPV6_UNICAST_HOPS: ::c_int = 4;
+pub const IPV6_MULTICAST_IF: ::c_int = 9;
+pub const IPV6_MULTICAST_HOPS: ::c_int = 10;
+pub const IPV6_MULTICAST_LOOP: ::c_int = 11;
+pub const IPV6_V6ONLY: ::c_int = 27;
+
pub const HOST_NOT_FOUND: ::c_int = 1;
pub const NO_DATA: ::c_int = 2;
pub const NO_ADDRESS: ::c_int = 2;