summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanosch Reppnow <janoschre@gmail.com>2022-12-12 20:28:26 +0100
committerJanosch Reppnow <janoschre@gmail.com>2023-02-26 12:19:54 +0100
commit1881328a3979c5f967db59c14c17097dd3c6883b (patch)
treeab245eb20ea3d7e0bffdb5a099f0f63e0b435fd0
parentf5363564c7ff96f8779043f7971145cb02345760 (diff)
downloadrust-libc-1881328a3979c5f967db59c14c17097dd3c6883b.tar.gz
add RTEXT_FILTER* constants from linux/rtnetlink.h
-rw-r--r--libc-test/semver/linux.txt7
-rw-r--r--src/unix/linux_like/linux/mod.rs8
2 files changed, 15 insertions, 0 deletions
diff --git a/libc-test/semver/linux.txt b/libc-test/semver/linux.txt
index daccc3c38d..42b0eca9df 100644
--- a/libc-test/semver/linux.txt
+++ b/libc-test/semver/linux.txt
@@ -2014,6 +2014,13 @@ RTCF_LOG
RTCF_MASQ
RTCF_NAT
RTCF_VALVE
+RTEXT_FILTER_BRVLAN
+RTEXT_FILTER_BRVLAN_COMPRESSED
+RTEXT_FILTER_CFM_CONFIG
+RTEXT_FILTER_CFM_STATUS
+RTEXT_FILTER_MRP
+RTEXT_FILTER_SKIP_STATS
+RTEXT_FILTER_VF
RTF_ADDRCLASSMASK
RTF_ADDRCONF
RTF_ALLONLINK
diff --git a/src/unix/linux_like/linux/mod.rs b/src/unix/linux_like/linux/mod.rs
index be12190b45..2422d2063f 100644
--- a/src/unix/linux_like/linux/mod.rs
+++ b/src/unix/linux_like/linux/mod.rs
@@ -3030,6 +3030,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;