summaryrefslogtreecommitdiffstats
path: root/tests/loop-detect.4
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2012-12-10 17:10:58 +0100
committerPatrick McHardy <kaber@trash.net>2012-12-10 17:11:16 +0100
commit4ddc2fd15d8bea177e0fb1c8b538e4ab30d1ec7f (patch)
treebe94050d20c83f262f8dce470b99642cc0e70ca5 /tests/loop-detect.4
parent176698a280d24840b745a7ab57c553655e7dd1a6 (diff)
tests: add loop detection tests
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'tests/loop-detect.4')
-rw-r--r--tests/loop-detect.47
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/loop-detect.4 b/tests/loop-detect.4
new file mode 100644
index 00000000..f6f4d572
--- /dev/null
+++ b/tests/loop-detect.4
@@ -0,0 +1,7 @@
+#! nft -f
+
+# Circular jump with an intermediate anonymous verdict map: chain1 -> chain2 -> chain3 -> chain1
+flush table filter
+add filter chain1 jump chain2
+add filter chain2 ip daddr vmap { 10.0.0.1 => continue, 192.168.0.1 => jump chain3 }
+add filter chain3 jump chain1