From 12f3b38b104e3bd2b49df7d5aea9bc29d6f7d2a7 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Mon, 15 Aug 2022 15:36:35 +0200 Subject: 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 --- libc-test/build.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'libc-test/build.rs') 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, } }); -- cgit v1.2.1