path: root/tests
diff options
authorFlorian Westphal <>2019-10-07 16:34:32 +0200
committerFlorian Westphal <>2019-10-07 16:34:32 +0200
commit1b585afb6f114050d21f0ac5daecdde298cf480f (patch)
tree9a3f963f09024d33ded6a5df247b83186df17b48 /tests
parent85299177c2cb5516de7550a42fcbe80436f033ab (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 <>
Diffstat (limited to 'tests')
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 { 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"