summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/nft-f/dumps/0027split_chains_0.nft
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2021-06-14 20:51:11 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2021-06-14 20:53:18 +0200
commitb4060b2e5649d920ee40b27038a89569cf9e0f85 (patch)
tree07b93324ba8a0b2eabef1ac73ae9a2997ab87e4e /tests/shell/testcases/nft-f/dumps/0027split_chains_0.nft
parent95d348d55a9e0c8f77bf34578258c79cc4f5b96c (diff)
tests: shell: cover split chain reference across tables
Add a test to cover table T1 containing the definition of chain C1, and table T1' (actually the same definition as T1) that contains a (jump) reference to chain C1. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/shell/testcases/nft-f/dumps/0027split_chains_0.nft')
-rw-r--r--tests/shell/testcases/nft-f/dumps/0027split_chains_0.nft9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/shell/testcases/nft-f/dumps/0027split_chains_0.nft b/tests/shell/testcases/nft-f/dumps/0027split_chains_0.nft
new file mode 100644
index 00000000..39198be1
--- /dev/null
+++ b/tests/shell/testcases/nft-f/dumps/0027split_chains_0.nft
@@ -0,0 +1,9 @@
+table inet filter {
+ chain x {
+ }
+
+ chain input {
+ type filter hook input priority filter; policy accept;
+ jump x
+ }
+}