From 1f24768c93346bfb70214fcba65a1dcb3c2e7d46 Mon Sep 17 00:00:00 2001 From: Jeremy Sowden Date: Mon, 3 Feb 2020 11:20:21 +0000 Subject: tests: shell: add bit-shift tests. Add a couple of shell test-cases for setting the CT mark to a bitwise expression derived from the packet mark and vice versa. Signed-off-by: Jeremy Sowden Signed-off-by: Pablo Neira Ayuso --- tests/shell/testcases/chains/dumps/0040mark_shift_1.nft | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/shell/testcases/chains/dumps/0040mark_shift_1.nft (limited to 'tests/shell/testcases/chains/dumps/0040mark_shift_1.nft') diff --git a/tests/shell/testcases/chains/dumps/0040mark_shift_1.nft b/tests/shell/testcases/chains/dumps/0040mark_shift_1.nft new file mode 100644 index 00000000..56ec8dc7 --- /dev/null +++ b/tests/shell/testcases/chains/dumps/0040mark_shift_1.nft @@ -0,0 +1,6 @@ +table ip t { + chain c { + type filter hook input priority mangle; policy accept; + iif "lo" ct mark & 0x000000ff == 0x00000010 meta mark set ct mark >> 8 + } +} -- cgit v1.2.3