From: Pablo Neira Ayuso Date: Mon, 8 Apr 2024 21:05:28 +0000 (+0200) Subject: tests: shell: check for reset tcp options support X-Git-Tag: v1.1.0~55 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6a39fd3b68ac8a96340b87b9dc8380a9cd4e6398;p=thirdparty%2Fnftables.git tests: shell: check for reset tcp options support Fixes: 59a33d08ab3a ("parser: tcpopt: fix tcp option parsing with NUM + length field") Signed-off-by: Pablo Neira Ayuso --- diff --git a/tests/shell/features/reset_tcp_options.nft b/tests/shell/features/reset_tcp_options.nft new file mode 100644 index 000000000..47d1c7b8c --- /dev/null +++ b/tests/shell/features/reset_tcp_options.nft @@ -0,0 +1,5 @@ +table inet t { + chain c { + reset tcp option fastopen + } +} diff --git a/tests/shell/testcases/packetpath/tcp_options b/tests/shell/testcases/packetpath/tcp_options index 88552226e..57e228c59 100755 --- a/tests/shell/testcases/packetpath/tcp_options +++ b/tests/shell/testcases/packetpath/tcp_options @@ -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"