summaryrefslogtreecommitdiffstats
path: root/tests/py
diff options
context:
space:
mode:
authorBrett Mastbergen <brett.mastbergen@gmail.com>2020-05-01 13:55:35 -0400
committerPablo Neira Ayuso <pablo@netfilter.org>2020-05-01 21:12:06 +0200
commitdcec7d57559a1fdfe50e2ae2529bf1636dd57844 (patch)
treef02f5c997e051dfc17c9bd960e97dfa2e8c41858 /tests/py
parente68938f2bf89fcc9a99e12c9b7a10c1838f2a133 (diff)
ct: Add support for the 'id' key
The 'id' key allows for matching on the id of the conntrack entry. v2: Remove ct_id_type Signed-off-by: Brett Mastbergen <brett.mastbergen@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py')
-rw-r--r--tests/py/any/ct.t2
-rw-r--r--tests/py/any/ct.t.payload5
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/py/any/ct.t b/tests/py/any/ct.t
index f65d2759..cc09aebc 100644
--- a/tests/py/any/ct.t
+++ b/tests/py/any/ct.t
@@ -128,6 +128,8 @@ ct both zone 1;fail
ct original zone 1;ok
ct reply zone 1;ok
+ct id 12345;ok
+
ct zone set 1;ok
ct original zone set 1;ok
ct reply zone set 1;ok
diff --git a/tests/py/any/ct.t.payload b/tests/py/any/ct.t.payload
index 66159125..ccbddc89 100644
--- a/tests/py/any/ct.t.payload
+++ b/tests/py/any/ct.t.payload
@@ -520,3 +520,8 @@ ip test-ip4 output
[ bitwise reg 1 = (reg=1 & 0xfffffffe ) ^ 0x00000001 ]
[ ct set mark with reg 1 ]
+# ct id 12345
+ip test-ip4 output
+ [ ct load unknown => reg 1 ]
+ [ cmp eq reg 1 0x39300000 ]
+