summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/maps/dumps/typeof_raw_0.nft
blob: 476169f2943b4ce3ea6bf785374b6b56dae18a3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
table ip x {
	map y {
		typeof ip saddr . @ih,32,32 : verdict
		elements = { 1.1.1.1 . 0x14 : accept,
			     7.7.7.7 . 0x86 : accept,
			     7.7.7.8 . 0x97 : drop }
	}

	chain y {
		ip saddr . @nh,32,32 vmap @y
		ip saddr . @nh,32,32 vmap { 4.4.4.4 . 0x34 : accept, 5.5.5.5 . 0x45 : drop }
	}
}