summaryrefslogtreecommitdiff
path: root/libc-test
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2021-01-04 22:34:07 -0800
committerJosh Triplett <josh@joshtriplett.org>2021-01-05 11:39:47 -0800
commit2076d1cd3fddd08c5d5917fdeb72906ffd0c9c49 (patch)
tree5b3ae4f4d1c0f619f32af268be60d744539ea7be /libc-test
parenta98a649bc3d6c4c8870323ded76d143f33ddda22 (diff)
downloadrust-libc-2076d1cd3fddd08c5d5917fdeb72906ffd0c9c49.tar.gz
Add more IFLA_ values
Diffstat (limited to 'libc-test')
-rwxr-xr-xlibc-test/build.rs22
1 files changed, 22 insertions, 0 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs
index d5dc0ef1ea..65566e3be9 100755
--- a/libc-test/build.rs
+++ b/libc-test/build.rs
@@ -2672,6 +2672,28 @@ fn test_linux(target: &str) {
// Not yet implemented on sparc64
"SYS_clone3" if mips | sparc64 => true,
+ // Missing from musl's kernel headers
+ | "IFLA_GSO_MAX_SEGS"
+ | "IFLA_GSO_MAX_SIZE"
+ | "IFLA_PAD"
+ | "IFLA_XDP"
+ | "IFLA_EVENT"
+ | "IFLA_NEW_NETNSID"
+ | "IFLA_IF_NETNSID"
+ | "IFLA_TARGET_NETNSID"
+ | "IFLA_CARRIER_UP_COUNT"
+ | "IFLA_CARRIER_DOWN_COUNT"
+ | "IFLA_NEW_IFINDEX"
+ | "IFLA_MIN_MTU"
+ | "IFLA_MAX_MTU"
+ if musl => true,
+
+ // Requires more recent kernel headers:
+ | "IFLA_PROP_LIST"
+ | "IFLA_ALT_IFNAME"
+ | "IFLA_PERM_ADDRESS"
+ | "IFLA_PROTO_DOWN_REASON" => true,
+
_ => false,
}
});