From 1881328a3979c5f967db59c14c17097dd3c6883b Mon Sep 17 00:00:00 2001 From: Janosch Reppnow Date: Mon, 12 Dec 2022 20:28:26 +0100 Subject: add RTEXT_FILTER* constants from linux/rtnetlink.h --- libc-test/semver/linux.txt | 7 +++++++ src/unix/linux_like/linux/mod.rs | 8 ++++++++ 2 files changed, 15 insertions(+) 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; -- cgit v1.2.1