summaryrefslogtreecommitdiff
path: root/libc-test
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-08-24 10:34:07 +0000
committerbors <bors@rust-lang.org>2022-08-24 10:34:07 +0000
commitaf5de5015907643c8ddba62dc33ec561e583ae40 (patch)
tree4a91b83acf4e587d25f2f70ae25938e837778e05 /libc-test
parentfc683708e1c63dfe773e207b354d90c15afc9346 (diff)
parent12f3b38b104e3bd2b49df7d5aea9bc29d6f7d2a7 (diff)
downloadrust-libc-af5de5015907643c8ddba62dc33ec561e583ae40.tar.gz
Auto merge of #2876 - phi-gamma:netfilter, r=JohnTitor
linux: add missing netfilter definitions Bring ``libc`` up to parity with Linux v5.18 headers wrt. to Netfilter. ``libc-test`` fails due to unrelated issues on my Fedora box but the changes should be inocuous enough IMO. Note there’s a warning in the code indicating potential trouble due to [this issue](https://github.com/rust-lang/libc/pull/1628). I’ll sort this out if the CI run fails.
Diffstat (limited to 'libc-test')
-rw-r--r--libc-test/build.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs
index ea4c625155..ba428fc730 100644
--- a/libc-test/build.rs
+++ b/libc-test/build.rs
@@ -3194,6 +3194,21 @@ fn test_linux(target: &str) {
// Added in Linux 5.14
"FUTEX_LOCK_PI2" => true,
+ // FIXME: Parts of netfilter/nfnetlink*.h require more recent kernel headers:
+ | "NFNL_SUBSYS_HOOK" // v5.14+
+ | "NFNL_SUBSYS_COUNT" // bumped in v5.14
+ | "NFQA_VLAN" // v4.7+
+ | "NFQA_L2HDR" // v4.7+
+ | "NFQA_PRIORITY" // v5.18+
+ | "NFQA_VLAN_UNSPEC" // v4.7+
+ | "NFQA_VLAN_PROTO" // v4.7+
+ | "NFQA_VLAN_TCI" // v4.7+
+ | "NFULA_VLAN" // v5.4+
+ | "NFULA_L2HDR" // v5.4+
+ | "NFULA_VLAN_UNSPEC" // v5.4+
+ | "NFULA_VLAN_PROTO" // v5.4+
+ | "NFULA_VLAN_TCI" => true, // v5.4+
+
_ => false,
}
});