summaryrefslogtreecommitdiffstats
path: root/tests/loop-detect.3
diff options
context:
space:
mode:
Diffstat (limited to 'tests/loop-detect.3')
-rw-r--r--tests/loop-detect.37
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/loop-detect.3 b/tests/loop-detect.3
new file mode 100644
index 00000000..3b83ef12
--- /dev/null
+++ b/tests/loop-detect.3
@@ -0,0 +1,7 @@
+#! nft -f
+
+# Circular jump when creating an anonymous verdict map: chain1 -> chain2 -> chain3 -> chain1
+flush table filter
+add filter chain1 jump chain2
+add filter chain2 jump chain3
+add filter chain3 ip daddr vmap { 10.0.0.1 => continue, 192.168.0.1 => jump chain1 }