diff options
author | Jeremy Sowden <jeremy@azazel.net> | 2023-03-17 10:16:54 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2023-03-28 10:26:34 +0200 |
commit | 743071a345c5687ffea172bd119b0355d38d7c8f (patch) | |
tree | a509bdd9736a240a22a5d0758650b646ea9f1e38 /tests/shell/testcases/bitwise/dumps/0040mark_binop_6.nft | |
parent | ad8546da23ecdccf31f8a77c8d7906fefd569bf5 (diff) |
tests: shell: 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/shell/testcases/bitwise/dumps/0040mark_binop_6.nft')
-rw-r--r-- | tests/shell/testcases/bitwise/dumps/0040mark_binop_6.nft | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/shell/testcases/bitwise/dumps/0040mark_binop_6.nft b/tests/shell/testcases/bitwise/dumps/0040mark_binop_6.nft new file mode 100644 index 00000000..cf7be90c --- /dev/null +++ b/tests/shell/testcases/bitwise/dumps/0040mark_binop_6.nft @@ -0,0 +1,6 @@ +table ip6 t { + chain c { + type filter hook output priority filter; policy accept; + ct mark set ip6 dscp << 2 | 0x10 + } +} |