From: Florian Westphal Date: Tue, 14 Jul 2020 16:34:59 +0000 (+0200) Subject: tests: extend existing dormat test case to catch a kernel bug X-Git-Tag: v0.9.7~68 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=675af9a9ba4effb2aa74ebbbe96f0fa4e2025a49;p=thirdparty%2Fnftables.git tests: extend existing dormat test case to catch a kernel bug This is a test case for the kernel bug fixed by: netfilter: nf_tables: fix nat hook table deletion Signed-off-by: Florian Westphal --- diff --git a/tests/shell/testcases/transactions/0002table_0 b/tests/shell/testcases/transactions/0002table_0 index 246b10924..c5f31a6fb 100755 --- a/tests/shell/testcases/transactions/0002table_0 +++ b/tests/shell/testcases/transactions/0002table_0 @@ -5,6 +5,7 @@ set -e RULESET="add table x delete table x add table x +add chain x y { type nat hook prerouting priority 0; policy accept; } add table x { flags dormant; }" $NFT -f - <<< "$RULESET" diff --git a/tests/shell/testcases/transactions/dumps/0002table_0.nft b/tests/shell/testcases/transactions/dumps/0002table_0.nft index 6eb707263..429cbc348 100644 --- a/tests/shell/testcases/transactions/dumps/0002table_0.nft +++ b/tests/shell/testcases/transactions/dumps/0002table_0.nft @@ -1,3 +1,7 @@ table ip x { flags dormant + + chain y { + type nat hook prerouting priority filter; policy accept; + } }