]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests/shell: skip inner matching tests if unsupported
authorFlorian Westphal <fw@strlen.de>
Mon, 18 Sep 2023 10:28:18 +0000 (12:28 +0200)
committerFlorian Westphal <fw@strlen.de>
Mon, 18 Sep 2023 11:08:41 +0000 (13:08 +0200)
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Thomas Haller <thaller@redhat.com>
tests/shell/features/inner_matching.nft [new file with mode: 0644]
tests/shell/testcases/sets/inner_0

diff --git a/tests/shell/features/inner_matching.nft b/tests/shell/features/inner_matching.nft
new file mode 100644 (file)
index 0000000..6c86fd3
--- /dev/null
@@ -0,0 +1,7 @@
+# 3a07327d10a0 ("netfilter: nft_inner: support for inner tunnel header matching")
+# v6.2-rc1~99^2~350^2~4
+table ip t {
+        chain c {
+                udp dport 4789 vxlan ip saddr 1.2.3.4
+        }
+}
index 0eb172a8cf066f2098899b13842191efd493f863..39d91bd9c3ed765a3e33fff8615a6ab89b2543bd 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/bash
 
+# NFT_TEST_REQUIRES(NFT_TEST_HAVE_inner_matching)
+
 set -e
 
 RULESET="table netdev x {