From 743071a345c5687ffea172bd119b0355d38d7c8f Mon Sep 17 00:00:00 2001 From: Jeremy Sowden Date: Fri, 17 Mar 2023 10:16:54 +0100 Subject: 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 Signed-off-by: Pablo Neira Ayuso --- tests/shell/testcases/bitwise/dumps/0040mark_binop_7.nft | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/shell/testcases/bitwise/dumps/0040mark_binop_7.nft (limited to 'tests/shell/testcases/bitwise/dumps/0040mark_binop_7.nft') diff --git a/tests/shell/testcases/bitwise/dumps/0040mark_binop_7.nft b/tests/shell/testcases/bitwise/dumps/0040mark_binop_7.nft new file mode 100644 index 00000000..a9663e62 --- /dev/null +++ b/tests/shell/testcases/bitwise/dumps/0040mark_binop_7.nft @@ -0,0 +1,6 @@ +table ip6 t { + chain c { + type filter hook input priority filter; policy accept; + meta mark set ip6 dscp << 2 | 0x10 + } +} -- cgit v1.2.3