]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: shell: skip ip option tests if kernel does not support it
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 12 Jun 2024 22:37:48 +0000 (00:37 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 13 Jun 2024 00:26:49 +0000 (02:26 +0200)
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/shell/features/ip_options.nft [new file with mode: 0644]
tests/shell/testcases/sets/typeof_sets_0

diff --git a/tests/shell/features/ip_options.nft b/tests/shell/features/ip_options.nft
new file mode 100644 (file)
index 0000000..0b8cb09
--- /dev/null
@@ -0,0 +1,8 @@
+# dbb5281a1f84 ("netfilter: nf_tables: add support for matching IPv4 options")
+# v5.3-rc1~140^2~153^2~1
+
+table ip x {
+       chain y {
+               ip option ra value 255
+       }
+}
index 016227da62425fc2ebb95cde384e74d62954c7f3..a105acffde48c4225e05e96ba4ff2f39d459106b 100755 (executable)
@@ -4,6 +4,8 @@
 # s1 and s2 are identical, they just use different
 # ways for declaration.
 
+# NFT_TEST_REQUIRES(NFT_TEST_HAVE_ip_options)
+
 set -e
 
 die() {