Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3460,6 +3460,7 @@ fn test_linux(target: &str) {
|| name.starts_with("P_")
|| name.starts_with("PF_")
|| name.starts_with("RLIMIT_")
|| name.starts_with("RTEXT_FILTER_")
|| name.starts_with("SOL_")
|| name.starts_with("STATX_")
|| name.starts_with("SW_")
Expand All @@ -3474,6 +3475,7 @@ fn test_linux(target: &str) {
if musl || sparc64 {
// FIXME: Requires >= 5.4.1 kernel headers
if name.starts_with("J1939")
|| name.starts_with("RTEXT_FILTER_")
|| name.starts_with("SO_J1939")
|| name.starts_with("SCM_J1939")
{
Expand Down
7 changes: 7 additions & 0 deletions libc-test/semver/linux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions src/unix/linux_like/linux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down