diff options
author | bors <bors@rust-lang.org> | 2023-04-02 15:09:28 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2023-04-02 15:09:28 +0000 |
commit | 26c13fd57708475a83493387ca1a73a2b8ebdaa0 (patch) | |
tree | 8fc4e5e979e9c27c3872bc12cd63cd9043bc40aa /src | |
parent | 82f6fd2c33d72b6252bc14103362fff02a93ce55 (diff) | |
parent | 63ba3a046bac119995e2b5a21b6782398b92665a (diff) | |
download | rust-libc-26c13fd57708475a83493387ca1a73a2b8ebdaa0.tar.gz |
Auto merge of #3035 - jreppnow:rtnetlink-ext-filter, r=JohnTitor
Adding RTEXT_FILTER* constants from linux/rtnetlink.h
Adding some constants needed for some specific netlink-route interactions (fetching information on a network interface). They are defined at ```linux/rtnetlink.h```.
Diffstat (limited to 'src')
-rw-r--r-- | src/unix/linux_like/linux/mod.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/unix/linux_like/linux/mod.rs b/src/unix/linux_like/linux/mod.rs index 36b2d7878e..a1e1900747 100644 --- a/src/unix/linux_like/linux/mod.rs +++ b/src/unix/linux_like/linux/mod.rs @@ -3042,6 +3042,14 @@ pub const ARPD_LOOKUP: ::c_ushort = 0x02; pub const ARPD_FLUSH: ::c_ushort = 0x03; pub const ATF_MAGIC: ::c_int = 0x80; +pub const RTEXT_FILTER_VF: ::c_int = 1 << 0; +pub const RTEXT_FILTER_BRVLAN: ::c_int = 1 << 1; +pub const RTEXT_FILTER_BRVLAN_COMPRESSED: ::c_int = 1 << 2; +pub const RTEXT_FILTER_SKIP_STATS: ::c_int = 1 << 3; +pub const RTEXT_FILTER_MRP: ::c_int = 1 << 4; +pub const RTEXT_FILTER_CFM_CONFIG: ::c_int = 1 << 5; +pub const RTEXT_FILTER_CFM_STATUS: ::c_int = 1 << 6; + // userspace compat definitions for RTNLGRP_* pub const RTMGRP_LINK: ::c_int = 0x00001; pub const RTMGRP_NOTIFY: ::c_int = 0x00002; |