summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/bitwise/0040mark_binop_1
blob: bd9e028df78ce0ee19a18aeb82a6b5fbfcbd9ec1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

# NFT_TEST_REQUIRES(NFT_TEST_HAVE_bitshift)

set -e

RULESET="
  add table t
  add chain t c { type filter hook input priority filter; }
  add rule t c iif lo ct mark & 0xff 0x10 meta mark set ct mark >> 8
"

$NFT -f - <<< "$RULESET"