diff options
author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-03-17 09:48:14 +0900 |
---|---|---|
committer | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-03-17 09:48:45 +0900 |
commit | b7cb4d2c7b988ca0ce82fc43ee6484035a578cf0 (patch) | |
tree | c4cf3d8cc35ba9659083063e172195136d0db202 | |
parent | 598939dd5ecb9364b89c5eb14be08f7ffd6ea847 (diff) | |
download | rust-libc-b7cb4d2c7b988ca0ce82fc43ee6484035a578cf0.tar.gz |
Add constants from `linux/in.h`
-rw-r--r-- | src/unix/linux_like/linux/mod.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/unix/linux_like/linux/mod.rs b/src/unix/linux_like/linux/mod.rs index eb068d337e..e46e6b2415 100644 --- a/src/unix/linux_like/linux/mod.rs +++ b/src/unix/linux_like/linux/mod.rs @@ -1298,6 +1298,17 @@ pub const IPPROTO_MPLS: ::c_int = 137; pub const IPPROTO_RAW: ::c_int = 255; pub const IPPROTO_MAX: ::c_int = 256; +pub const IP_MSFILTER: ::c_int = 41; +pub const MCAST_JOIN_GROUP: ::c_int = 42; +pub const MCAST_BLOCK_SOURCE: ::c_int = 43; +pub const MCAST_UNBLOCK_SOURCE: ::c_int = 44; +pub const MCAST_LEAVE_GROUP: ::c_int = 45; +pub const MCAST_JOIN_SOURCE_GROUP: ::c_int = 46; +pub const MCAST_LEAVE_SOURCE_GROUP: ::c_int = 47; +pub const MCAST_MSFILTER: ::c_int = 48; +pub const IP_MULTICAST_ALL: ::c_int = 49; +pub const IP_UNICAST_IF: ::c_int = 50; + pub const AF_IB: ::c_int = 27; pub const AF_MPLS: ::c_int = 28; pub const AF_NFC: ::c_int = 39; |