]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: shell: check for reset tcp options support
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 8 Apr 2024 21:05:28 +0000 (23:05 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 8 Apr 2024 21:07:22 +0000 (23:07 +0200)
Fixes: 59a33d08ab3a ("parser: tcpopt: fix tcp option parsing with NUM + length field")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/shell/features/reset_tcp_options.nft [new file with mode: 0644]
tests/shell/testcases/packetpath/tcp_options

diff --git a/tests/shell/features/reset_tcp_options.nft b/tests/shell/features/reset_tcp_options.nft
new file mode 100644 (file)
index 0000000..47d1c7b
--- /dev/null
@@ -0,0 +1,5 @@
+table inet t {
+        chain c {
+               reset tcp option fastopen
+       }
+}
index 88552226ee3ad6d749f7fec4c28a32e41843af7a..57e228c5990e07ecc6792fdf6299912ac04a71cb 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/bash
 
+# NFT_TEST_REQUIRES(NFT_TEST_HAVE_reset_tcp_options)
+
 have_socat="no"
 socat -h > /dev/null && have_socat="yes"