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/chains | |
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/chains')
4 files changed, 0 insertions, 34 deletions
diff --git a/tests/shell/testcases/chains/0040mark_shift_0 b/tests/shell/testcases/chains/0040mark_shift_0 deleted file mode 100755 index ef3dccfa..00000000 --- a/tests/shell/testcases/chains/0040mark_shift_0 +++ /dev/null @@ -1,11 +0,0 @@ -#!/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 -f - <<< "$RULESET" diff --git a/tests/shell/testcases/chains/0040mark_shift_1 b/tests/shell/testcases/chains/0040mark_shift_1 deleted file mode 100755 index b609f5ef..00000000 --- a/tests/shell/testcases/chains/0040mark_shift_1 +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -set -e - -RULESET=" - add table t - add chain t c { type filter hook input priority mangle; } - add rule t c iif lo ct mark & 0xff 0x10 meta mark set ct mark >> 8 -" - -$NFT -f - <<< "$RULESET" diff --git a/tests/shell/testcases/chains/dumps/0040mark_shift_0.nft b/tests/shell/testcases/chains/dumps/0040mark_shift_0.nft deleted file mode 100644 index 52d59d2c..00000000 --- a/tests/shell/testcases/chains/dumps/0040mark_shift_0.nft +++ /dev/null @@ -1,6 +0,0 @@ -table ip t { - chain c { - type filter hook output priority mangle; policy accept; - oif "lo" ct mark set (meta mark | 0x00000010) << 8 - } -} diff --git a/tests/shell/testcases/chains/dumps/0040mark_shift_1.nft b/tests/shell/testcases/chains/dumps/0040mark_shift_1.nft deleted file mode 100644 index 56ec8dc7..00000000 --- a/tests/shell/testcases/chains/dumps/0040mark_shift_1.nft +++ /dev/null @@ -1,6 +0,0 @@ -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 - } -} |