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

add table ip filter
add chain ip filter input { type filter hook input priority 0; }

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

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

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