summaryrefslogtreecommitdiffstats
path: root/tests/py/any/ct.t
diff options
context:
space:
mode:
authorJeremy Sowden <jeremy@azazel.net>2020-02-03 11:20:23 +0000
committerPablo Neira Ayuso <pablo@netfilter.org>2020-02-07 16:57:30 +0100
commita16920d3620d9b7130c994a26c0b86f8b357103e (patch)
tree304151f8693cee6740a276b6422ef7d75b4d9ec2 /tests/py/any/ct.t
parent2674c39bfdb77e5d61a44ebf6e5c356ac767cd24 (diff)
tests: py: add bit-shift tests.
Add a couple of Python test-cases for setting the CT mark to a bitwise expression derived from the packet mark and vice versa. Signed-off-by: Jeremy Sowden <jeremy@azazel.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/any/ct.t')
-rw-r--r--tests/py/any/ct.t1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/py/any/ct.t b/tests/py/any/ct.t
index ebc08644..f65d2759 100644
--- a/tests/py/any/ct.t
+++ b/tests/py/any/ct.t
@@ -57,6 +57,7 @@ ct mark set 0x11333 and 0x11;ok;ct mark set 0x00000011
ct mark set 0x12 or 0x11;ok;ct mark set 0x00000013
ct mark set 0x11;ok;ct mark set 0x00000011
ct mark set mark;ok;ct mark set meta mark
+ct mark set (meta mark | 0x10) << 8;ok;ct mark set (meta mark | 0x00000010) << 8
ct mark set mark map { 1 : 10, 2 : 20, 3 : 30 };ok;ct mark set meta mark map { 0x00000003 : 0x0000001e, 0x00000002 : 0x00000014, 0x00000001 : 0x0000000a}
ct mark set {0x11333, 0x11};fail