From 2076d1cd3fddd08c5d5917fdeb72906ffd0c9c49 Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Mon, 4 Jan 2021 22:34:07 -0800 Subject: Add more IFLA_ values --- libc-test/build.rs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'libc-test') 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, } }); -- cgit v1.2.1