summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/maps/dumps/0012map_0.nft
blob: 895490cffa8c1be6ad780756b921bd522192d3b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
table ip x {
	map z {
		type ifname : verdict
		elements = { "lo" : accept,
			     "eth0" : drop,
			     "eth1" : drop }
	}

	map w {
		typeof ip saddr . meta mark : verdict
		flags interval
		counter
		elements = { 127.0.0.1-127.0.0.4 . 0x00123434-0x00b00122 counter packets 0 bytes 0 : accept }
	}

	chain y {
		iifname vmap { "lo" : accept, "eth0" : drop, "eth1" : drop }
	}

	chain k {
		type filter hook input priority filter + 1; policy accept;
		meta mark set 0x00123434
		ip saddr . meta mark vmap @w
	}
}