]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: shell: skip synproxy test if kernel does not support it
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 21 Nov 2023 20:13:19 +0000 (21:13 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 22 Nov 2023 09:14:10 +0000 (10:14 +0100)
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/shell/features/synproxy.nft [new file with mode: 0644]
tests/shell/testcases/sets/0024synproxy_0

diff --git a/tests/shell/features/synproxy.nft b/tests/shell/features/synproxy.nft
new file mode 100644 (file)
index 0000000..bea4f92
--- /dev/null
@@ -0,0 +1,9 @@
+# v5.3-rc1~140^2~44^2~10
+# ad49d86e07a4 ("netfilter: nf_tables: Add synproxy support")
+table inet x {
+       synproxy https-synproxy {
+               mss 1460
+               wscale 7
+               timestamp sack-perm
+       }
+}
index ccaed0325d44e41b24c6757423bdb262ba400621..0c7da5729b0de2e50b7ac59aa806f3071435efea 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/bash
 
+# NFT_TEST_REQUIRES(NFT_TEST_HAVE_synproxy)
+
 # * creating valid named objects
 # * referencing them from a valid rule