From: Florian Westphal Date: Mon, 7 Oct 2019 14:34:32 +0000 (+0200) Subject: tests: check we can use "dynamic" set for lookups X-Git-Tag: v0.9.3~56 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1b585afb6f114050d21f0ac5daecdde298cf480f;p=thirdparty%2Fnftables.git 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 --- 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"