diff options
author | Jeremy Sowden <jeremy@azazel.net> | 2023-03-17 10:16:48 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2023-03-28 10:26:34 +0200 |
commit | 8221d86e616bdd5e9828c3eefb7cfb9abc3d211a (patch) | |
tree | ca2efe4991e9948aeac944d7be8282b5d8653c99 /tests/py/ip/ct.t | |
parent | 6696599e104098b61e45f99d161275883885b199 (diff) |
tests: py: add test-cases for ct and packet mark payload expressions
Add new test-cases to verify that defining a rule that sets the ct or
packet mark to a value derived from a payload works correctly.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/ip/ct.t')
-rw-r--r-- | tests/py/ip/ct.t | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/py/ip/ct.t b/tests/py/ip/ct.t index a387863e..eea9fd4e 100644 --- a/tests/py/ip/ct.t +++ b/tests/py/ip/ct.t @@ -28,3 +28,5 @@ meta mark set ct original saddr . meta mark map { 1.1.1.1 . 0x00000014 : 0x00000 meta mark set ct original ip saddr . meta mark map { 1.1.1.1 . 0x00000014 : 0x0000001e };ok ct original saddr . meta mark { 1.1.1.1 . 0x00000014 };fail ct original ip saddr . meta mark { 1.1.1.1 . 0x00000014 };ok +ct mark set ip dscp << 2 | 0x10;ok +ct mark set ip dscp << 26 | 0x10;ok |