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
9 changes: 9 additions & 0 deletions libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3634,6 +3634,15 @@ fn test_linux(target: &str) {
// Added in Linux 5.13
"PTRACE_GET_RSEQ_CONFIGURATION" if sparc64 => true,

// FIXME: Requires more recent kernel headers
| "IFLA_PARENT_DEV_NAME" // linux v5.13+
| "IFLA_PARENT_DEV_BUS_NAME" // linux v5.13+
| "IFLA_GRO_MAX_SIZE" // linux v5.16+
| "IFLA_TSO_MAX_SIZE" // linux v5.18+
| "IFLA_TSO_MAX_SEGS" // linux v5.18+
| "IFLA_ALLMULTI" // linux v6.0+
=> true,

_ => false,
}
});
Expand Down
6 changes: 6 additions & 0 deletions libc-test/semver/linux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -836,6 +836,7 @@ IFF_UP
IFF_VNET_HDR
IFLA_ADDRESS
IFLA_AF_SPEC
IFLA_ALLMULTI
IFLA_ALT_IFNAME
IFLA_BROADCAST
IFLA_CARRIER
Expand All @@ -845,6 +846,7 @@ IFLA_CARRIER_UP_COUNT
IFLA_COST
IFLA_EVENT
IFLA_EXT_MASK
IFLA_GRO_MAX_SIZE
IFLA_GROUP
IFLA_GSO_MAX_SEGS
IFLA_GSO_MAX_SIZE
Expand Down Expand Up @@ -875,6 +877,8 @@ IFLA_NUM_TX_QUEUES
IFLA_NUM_VF
IFLA_OPERSTATE
IFLA_PAD
IFLA_PARENT_DEV_BUS_NAME
IFLA_PARENT_DEV_NAME
IFLA_PERM_ADDRESS
IFLA_PHYS_PORT_ID
IFLA_PHYS_PORT_NAME
Expand All @@ -890,6 +894,8 @@ IFLA_QDISC
IFLA_STATS
IFLA_STATS64
IFLA_TARGET_NETNSID
IFLA_TSO_MAX_SEGS
IFLA_TSO_MAX_SIZE
IFLA_TXQLEN
IFLA_UNSPEC
IFLA_VFINFO_LIST
Expand Down
6 changes: 6 additions & 0 deletions src/unix/linux_like/linux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1699,6 +1699,12 @@ pub const IFLA_PROP_LIST: ::c_ushort = 52;
pub const IFLA_ALT_IFNAME: ::c_ushort = 53;
pub const IFLA_PERM_ADDRESS: ::c_ushort = 54;
pub const IFLA_PROTO_DOWN_REASON: ::c_ushort = 55;
pub const IFLA_PARENT_DEV_NAME: ::c_ushort = 56;
pub const IFLA_PARENT_DEV_BUS_NAME: ::c_ushort = 57;
pub const IFLA_GRO_MAX_SIZE: ::c_ushort = 58;
pub const IFLA_TSO_MAX_SIZE: ::c_ushort = 59;
pub const IFLA_TSO_MAX_SEGS: ::c_ushort = 60;
pub const IFLA_ALLMULTI: ::c_ushort = 61;

pub const IFLA_INFO_UNSPEC: ::c_ushort = 0;
pub const IFLA_INFO_KIND: ::c_ushort = 1;
Expand Down