summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/bitwise/0040mark_binop_0
blob: 4ecc9d3d6c830bc66f7d409bd4b9c769461bd0d2 (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 output priority filter; }
  add rule t c oif lo ct mark set (meta mark | 0x10) << 8
"

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