path: root/tests/shell
diff options
authorPablo Neira Ayuso <>2018-05-23 12:08:02 +0200
committerPablo Neira Ayuso <>2018-05-23 12:11:44 +0200
commit4b6fb07de07ad21c7e8e0c78f3f6387a933f3224 (patch)
tree40da7d7b8bd9cdd01962518a4b4bcbfd2d7f3811 /tests/shell
parentfc9566ff0adaceafae5687a3e719aa9a436915d5 (diff)
tests: shell: more chain dependency validation
More exercising for the chain dependency validation. Reported-by: Taehee Yoo <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'tests/shell')
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/shell/testcases/chains/0017masquerade_jump_1 b/tests/shell/testcases/chains/0017masquerade_jump_1
new file mode 100755
index 00000000..a57675f5
--- /dev/null
+++ b/tests/shell/testcases/chains/0017masquerade_jump_1
@@ -0,0 +1,10 @@
+set -e
+$NFT add table t
+$NFT add chain t input {type filter hook input priority 4 \; }
+$NFT add chain t c1
+$NFT add rule t input jump c1
+# kernel should return EOPNOTSUPP
+$NFT add rule t c1 masquerade 2>/dev/null >&2