summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/chains/0040mark_shift_1
blob: b609f5ef10ad73dc91399fbdf528e2dc7dee9327 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/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"