summaryrefslogtreecommitdiffstats
path: root/tests/py/any/ct.t.payload
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2022-02-17 12:52:20 +0100
committerPhil Sutter <phil@nwl.cc>2022-02-20 01:46:51 +0100
commit3d0ef874ecc9f4cd3df504f5241171b9f4b65251 (patch)
tree0a1b845bc205e82db2d7251b642a7ea00f01d7e6 /tests/py/any/ct.t.payload
parentc6e47eb076ce0c24a45f3bd793e6242db4261eb4 (diff)
tests: py: Test connlimit statement
This wasn't covered at all. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'tests/py/any/ct.t.payload')
-rw-r--r--tests/py/any/ct.t.payload8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/py/any/ct.t.payload b/tests/py/any/ct.t.payload
index 733276e1..ed868e53 100644
--- a/tests/py/any/ct.t.payload
+++ b/tests/py/any/ct.t.payload
@@ -508,3 +508,11 @@ ip6
[ bitwise reg 1 = ( reg 1 & 0x00000020 ) ^ 0x00000000 ]
[ cmp eq reg 1 0x00000000 ]
+# ct count 3
+ip test-ip4 output
+ [ connlimit count 3 flags 0 ]
+
+# ct count over 3
+ip test-ip4 output
+ [ connlimit count 3 flags 1 ]
+