summaryrefslogtreecommitdiffstats
path: root/tests/py/any/ct.t.payload
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2015-12-14 19:49:20 +0100
committerFlorian Westphal <fw@strlen.de>2015-12-14 19:49:20 +0100
commite0b76e5114374ce1e1c55a1aa122bf00ae8060b2 (patch)
tree08e6f0ffecf6ff6ca0685eebc0ab6ee0af4e7c7c /tests/py/any/ct.t.payload
parente7a1e66ec8e2a9a5b1d6a00aa6d2144ce29222e0 (diff)
ct regression tests for bytes, packets
Signed-off-by: Florian Westphal <fw@strlen.de> Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/any/ct.t.payload')
-rw-r--r--tests/py/any/ct.t.payload18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/py/any/ct.t.payload b/tests/py/any/ct.t.payload
index 651b6449..ac99429c 100644
--- a/tests/py/any/ct.t.payload
+++ b/tests/py/any/ct.t.payload
@@ -286,3 +286,21 @@ ip test-ip4 output
[ meta load mark => reg 1 ]
[ lookup reg 1 set map%d dreg 1 ]
[ ct set mark with reg 1 ]
+
+# ct original bytes \> 100000
+ip test-ip4 output
+ [ ct load bytes => reg 1 , dir original ]
+ [ byteorder reg 1 = hton(reg 1, 8, 8) ]
+ [ cmp gt reg 1 0x00000000 0xa0860100 ]
+
+# ct reply packets \< 100
+ip test-ip4 output
+ [ ct load packets => reg 1 , dir reply ]
+ [ byteorder reg 1 = hton(reg 1, 8, 8) ]
+ [ cmp lt reg 1 0x00000000 0x64000000 ]
+
+# ct bytes \> 100000
+ip test-ip4 output
+ [ ct load bytes => reg 1 ]
+ [ byteorder reg 1 = hton(reg 1, 8, 8) ]
+ [ cmp gt reg 1 0x00000000 0xa0860100 ]