diff options
author | Philipp Gesang <philipp.gesang@intra2net.com> | 2022-08-15 15:36:35 +0200 |
---|---|---|
committer | Philipp Gesang <phg@phi-gamma.net> | 2022-08-21 09:12:04 +0200 |
commit | 12f3b38b104e3bd2b49df7d5aea9bc29d6f7d2a7 (patch) | |
tree | 1e326d14708a92fc48b6ef51c2128637b4141aeb /libc-test | |
parent | 2a1d1033c6457b0dedb4e7ed35a19d9a513622b6 (diff) | |
download | rust-libc-12f3b38b104e3bd2b49df7d5aea9bc29d6f7d2a7.tar.gz |
linux: add missing netfilter definitions
Fill in missing constants available as of Linux v5.18. The
relevant UAPI headers are
- nfnetlink.h
- nfnetlink_log.h
- nfnetlink_queue.h
Diffstat (limited to 'libc-test')
-rw-r--r-- | libc-test/build.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs index 712b239ef8..2e401ec483 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -3190,6 +3190,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, } }); |