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/0040mark_shift_0 | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 tests/shell/testcases/chains/0040mark_shift_0 (limited to 'tests/shell/testcases/chains/0040mark_shift_0') diff --git a/tests/shell/testcases/chains/0040mark_shift_0 b/tests/shell/testcases/chains/0040mark_shift_0 new file mode 100755 index 00000000..55447f0b --- /dev/null +++ b/tests/shell/testcases/chains/0040mark_shift_0 @@ -0,0 +1,11 @@ +#!/bin/bash + +set -e + +RULESET=" + add table t + add chain t c { type filter hook output priority mangle; } + add rule t c oif lo ct mark set (meta mark | 0x10) << 8 +" + +$NFT --debug=eval -f - <<< "$RULESET" -- cgit v1.2.3