Skip to content

Commit 26c13fd

Browse files
committed
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```.
2 parents 82f6fd2 + 63ba3a0 commit 26c13fd

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

libc-test/build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3476,6 +3476,7 @@ fn test_linux(target: &str) {
34763476
|| name.starts_with("P_")
34773477
|| name.starts_with("PF_")
34783478
|| name.starts_with("RLIMIT_")
3479+
|| name.starts_with("RTEXT_FILTER_")
34793480
|| name.starts_with("SOL_")
34803481
|| name.starts_with("STATX_")
34813482
|| name.starts_with("SW_")
@@ -3490,6 +3491,7 @@ fn test_linux(target: &str) {
34903491
if musl || sparc64 {
34913492
// FIXME: Requires >= 5.4.1 kernel headers
34923493
if name.starts_with("J1939")
3494+
|| name.starts_with("RTEXT_FILTER_")
34933495
|| name.starts_with("SO_J1939")
34943496
|| name.starts_with("SCM_J1939")
34953497
{

libc-test/semver/linux.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2047,6 +2047,13 @@ RTCF_LOG
20472047
RTCF_MASQ
20482048
RTCF_NAT
20492049
RTCF_VALVE
2050+
RTEXT_FILTER_BRVLAN
2051+
RTEXT_FILTER_BRVLAN_COMPRESSED
2052+
RTEXT_FILTER_CFM_CONFIG
2053+
RTEXT_FILTER_CFM_STATUS
2054+
RTEXT_FILTER_MRP
2055+
RTEXT_FILTER_SKIP_STATS
2056+
RTEXT_FILTER_VF
20502057
RTF_ADDRCLASSMASK
20512058
RTF_ADDRCONF
20522059
RTF_ALLONLINK

src/unix/linux_like/linux/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3042,6 +3042,14 @@ pub const ARPD_LOOKUP: ::c_ushort = 0x02;
30423042
pub const ARPD_FLUSH: ::c_ushort = 0x03;
30433043
pub const ATF_MAGIC: ::c_int = 0x80;
30443044

3045+
pub const RTEXT_FILTER_VF: ::c_int = 1 << 0;
3046+
pub const RTEXT_FILTER_BRVLAN: ::c_int = 1 << 1;
3047+
pub const RTEXT_FILTER_BRVLAN_COMPRESSED: ::c_int = 1 << 2;
3048+
pub const RTEXT_FILTER_SKIP_STATS: ::c_int = 1 << 3;
3049+
pub const RTEXT_FILTER_MRP: ::c_int = 1 << 4;
3050+
pub const RTEXT_FILTER_CFM_CONFIG: ::c_int = 1 << 5;
3051+
pub const RTEXT_FILTER_CFM_STATUS: ::c_int = 1 << 6;
3052+
30453053
// userspace compat definitions for RTNLGRP_*
30463054
pub const RTMGRP_LINK: ::c_int = 0x00001;
30473055
pub const RTMGRP_NOTIFY: ::c_int = 0x00002;

0 commit comments

Comments
 (0)