From 1881cd676e24903b837f63cabd3e4f6fb25e0a24 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 21 Nov 2023 21:13:19 +0100 Subject: tests: shell: skip synproxy test if kernel does not support it Signed-off-by: Pablo Neira Ayuso --- tests/shell/features/synproxy.nft | 9 +++++++++ tests/shell/testcases/sets/0024synproxy_0 | 2 ++ 2 files changed, 11 insertions(+) create mode 100644 tests/shell/features/synproxy.nft (limited to 'tests/shell') diff --git a/tests/shell/features/synproxy.nft b/tests/shell/features/synproxy.nft new file mode 100644 index 00000000..bea4f920 --- /dev/null +++ b/tests/shell/features/synproxy.nft @@ -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 + } +} diff --git a/tests/shell/testcases/sets/0024synproxy_0 b/tests/shell/testcases/sets/0024synproxy_0 index ccaed032..0c7da572 100755 --- a/tests/shell/testcases/sets/0024synproxy_0 +++ b/tests/shell/testcases/sets/0024synproxy_0 @@ -1,5 +1,7 @@ #!/bin/bash +# NFT_TEST_REQUIRES(NFT_TEST_HAVE_synproxy) + # * creating valid named objects # * referencing them from a valid rule -- cgit v1.2.3