diff options
author | Florian Westphal <fw@strlen.de> | 2020-07-14 18:34:59 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2020-07-18 15:28:01 +0200 |
commit | 675af9a9ba4effb2aa74ebbbe96f0fa4e2025a49 (patch) | |
tree | a60dc36e349886fbce80fd4ce4acafcdd505c0bc | |
parent | 73605785cfc2a1928ddea3e2e675b460b27acd66 (diff) |
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 <fw@strlen.de>
-rwxr-xr-x | tests/shell/testcases/transactions/0002table_0 | 1 | ||||
-rw-r--r-- | tests/shell/testcases/transactions/dumps/0002table_0.nft | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/shell/testcases/transactions/0002table_0 b/tests/shell/testcases/transactions/0002table_0 index 246b1092..c5f31a6f 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 6eb70726..429cbc34 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; + } } |