diff options
author | Jeremy Sowden <jeremy@azazel.net> | 2023-03-17 10:16:50 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2023-03-28 10:26:34 +0200 |
commit | ad8546da23ecdccf31f8a77c8d7906fefd569bf5 (patch) | |
tree | 3591d744bec49a84bdab60f779f0e770e54e5f91 /tests/shell/testcases/bitwise/0040mark_binop_0 | |
parent | 8221d86e616bdd5e9828c3eefb7cfb9abc3d211a (diff) |
tests: shell: rename and move bitwise test-cases
The `0040mark_shift_?` tests are testing not just shifts, but binops
more generally, so name them accordingly.
Move them to a new folder specifically for bitwise operations.
Change the priorities of the chains to match the type.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/shell/testcases/bitwise/0040mark_binop_0')
-rwxr-xr-x | tests/shell/testcases/bitwise/0040mark_binop_0 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/shell/testcases/bitwise/0040mark_binop_0 b/tests/shell/testcases/bitwise/0040mark_binop_0 new file mode 100755 index 00000000..4280e33a --- /dev/null +++ b/tests/shell/testcases/bitwise/0040mark_binop_0 @@ -0,0 +1,11 @@ +#!/bin/bash + +set -e + +RULESET=" + add table t + add chain t c { type filter hook output priority filter; } + add rule t c oif lo ct mark set (meta mark | 0x10) << 8 +" + +$NFT -f - <<< "$RULESET" |