summaryrefslogtreecommitdiffstats
path: root/tests/payload-ll
blob: 8d2480ac066be76739c36b425c36fe486a509d84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! nft -f

table add ip filter
chain add ip filter input NF_INET_LOCAL_IN 0

# mac source
rule add ip filter input @ll,48,48 00:15:e9:f0:10:f8 counter

# mac dest
rule add ip filter input @ll,0,48 00:1b:21:02:6f:ad counter

# mac source and mac dest
rule add ip filter input @ll,0,48 00:1b:21:02:6f:ad \
			 @ll,48,48 00:15:e9:f0:10:f8 \
			 counter