diff options
author | Benjamin Saunders <ben.e.saunders@gmail.com> | 2018-12-14 23:12:47 -0800 |
---|---|---|
committer | Benjamin Saunders <ben.e.saunders@gmail.com> | 2018-12-14 23:12:47 -0800 |
commit | 948f2ab622cc2807b4be01841437b1061fa4b300 (patch) | |
tree | 57eedad600f31473a073a3c9e142b1d74aaadab3 | |
parent | 076edb21b16dd743b9b2345c397ccde1178f5263 (diff) | |
download | rust-libc-948f2ab622cc2807b4be01841437b1061fa4b300.tar.gz |
Add BSD IP_RECVTOS definitions
-rw-r--r-- | src/unix/bsd/apple/mod.rs | 1 | ||||
-rw-r--r-- | src/unix/bsd/freebsdlike/mod.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index f215836097..b89ba25b3c 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -1573,6 +1573,7 @@ pub const IP_HDRINCL: ::c_int = 2; pub const IP_ADD_MEMBERSHIP: ::c_int = 12; pub const IP_DROP_MEMBERSHIP: ::c_int = 13; pub const IP_PKTINFO: ::c_int = 26; +pub const IP_RECVTOS: ::c_int = 27; pub const IPV6_JOIN_GROUP: ::c_int = 12; pub const IPV6_LEAVE_GROUP: ::c_int = 13; pub const IPV6_RECVTCLASS: ::c_int = 35; diff --git a/src/unix/bsd/freebsdlike/mod.rs b/src/unix/bsd/freebsdlike/mod.rs index 1dc559aff3..7b7724ac81 100644 --- a/src/unix/bsd/freebsdlike/mod.rs +++ b/src/unix/bsd/freebsdlike/mod.rs @@ -664,6 +664,7 @@ pub const IP_RECVDSTADDR: ::c_int = 7; pub const IP_SENDSRCADDR: ::c_int = IP_RECVDSTADDR; pub const IP_ADD_MEMBERSHIP: ::c_int = 12; pub const IP_DROP_MEMBERSHIP: ::c_int = 13; +pub const IP_RECVTOS: ::c_int = 68; pub const IPV6_JOIN_GROUP: ::c_int = 12; pub const IPV6_LEAVE_GROUP: ::c_int = 13; pub const IPV6_RECVPKTINFO: ::c_int = 36; |