summaryrefslogtreecommitdiffstats
path: root/extensions/libebt_mark_m.txlate
blob: 7b44425b27168ea40c5fd1b4f27ab22c7ce83d3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
ebtables-translate -A INPUT --mark 42
nft add rule bridge filter INPUT meta mark 0x2a counter

ebtables-translate -A INPUT ! --mark 42
nft add rule bridge filter INPUT meta mark != 0x2a counter

ebtables-translate -A INPUT --mark ! 42
nft add rule bridge filter INPUT meta mark != 0x2a counter

ebtables-translate -A INPUT --mark ! 0x1/0xff
nft add rule bridge filter INPUT meta mark and 0xff != 0x1 counter

ebtables-translate -A INPUT --mark /0x02
nft add rule bridge filter INPUT meta mark and 0x2 != 0 counter