diff options
author | Florian Westphal <fw@strlen.de> | 2019-10-07 16:34:32 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2019-10-07 16:34:32 +0200 |
commit | 1b585afb6f114050d21f0ac5daecdde298cf480f (patch) | |
tree | 9a3f963f09024d33ded6a5df247b83186df17b48 /tests | |
parent | 85299177c2cb5516de7550a42fcbe80436f033ab (diff) |
tests: check we can use "dynamic" set for lookups
Requires kernel commit acab713177377
("netfilter: nf_tables: allow lookups in dynamic sets"), else the
rule add will fail.
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/shell/testcases/sets/0036add_set_element_expiration_0 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/shell/testcases/sets/0036add_set_element_expiration_0 b/tests/shell/testcases/sets/0036add_set_element_expiration_0 index f534802a..8dfed6c1 100755 --- a/tests/shell/testcases/sets/0036add_set_element_expiration_0 +++ b/tests/shell/testcases/sets/0036add_set_element_expiration_0 @@ -9,3 +9,5 @@ add element ip x y { 1.1.1.1 timeout 30s expires 15s }" test_output=$($NFT -e -f - <<< "$RULESET" 2>&1) diff -u <(echo "$test_output") <(echo "$RULESET") + +$NFT "add chain ip x c; add rule ip x c ip saddr @y" |