diff options
author | bors <bors@rust-lang.org> | 2018-12-24 17:34:07 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2018-12-24 17:34:07 +0000 |
commit | 8ee27008ffb0dec2e79360e8e65d96446ac54dff (patch) | |
tree | 6f062a9bfe5737ed8c5f8e7a9582b4ae90dd0525 /src/unix/bsd/mod.rs | |
parent | f0a6af02d35dff68ed560715181078632658ec2f (diff) | |
parent | 0de81a6bdfee0af34cb09f4cb2f39e0096af3255 (diff) | |
download | rust-libc-8ee27008ffb0dec2e79360e8e65d96446ac54dff.tar.gz |
Auto merge of #1175 - Ralith:ip-tos, r=alexcrichton
Expose unix ECN-related constants
I'm not certain of the correctness of the BSD definition, but I assume that's what CI's for.
Diffstat (limited to 'src/unix/bsd/mod.rs')
-rw-r--r-- | src/unix/bsd/mod.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/unix/bsd/mod.rs b/src/unix/bsd/mod.rs index 770b9b9818..03125c9473 100644 --- a/src/unix/bsd/mod.rs +++ b/src/unix/bsd/mod.rs @@ -179,6 +179,7 @@ pub const SIG_SETMASK: ::c_int = 3; pub const SIG_BLOCK: ::c_int = 0x1; pub const SIG_UNBLOCK: ::c_int = 0x2; +pub const IP_TOS: ::c_int = 3; pub const IP_MULTICAST_IF: ::c_int = 9; pub const IP_MULTICAST_TTL: ::c_int = 10; pub const IP_MULTICAST_LOOP: ::c_int = 11; @@ -189,6 +190,12 @@ 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 IPTOS_ECN_NOTECT: u8 = 0x00; +pub const IPTOS_ECN_MASK: u8 = 0x03; +pub const IPTOS_ECN_ECT1: u8 = 0x01; +pub const IPTOS_ECN_ECT0: u8 = 0x02; +pub const IPTOS_ECN_CE: u8 = 0x03; + pub const ST_RDONLY: ::c_ulong = 1; pub const SCM_RIGHTS: ::c_int = 0x01; |