summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/maps/dumps/typeof_integer_0.nft
blob: 330415574c95b594ecef5315b3618721571773dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
table inet t {
	map m1 {
		typeof udp length . @ih,32,32 : verdict
		flags interval
		elements = { 20-80 . 0x14 : accept,
			     1-10 . 0xa : drop }
	}

	map m2 {
		typeof udp length . @ih,32,32 : verdict
		elements = { 30 . 0x1e : drop,
			     20 . 0x24 : accept }
	}

	chain c {
		udp length . @ih,32,32 vmap @m1
		udp length . @ih,32,32 vmap @m2
		udp length . @th,160,128 vmap { 47-63 . 0xe373135363130333131303735353203 : accept }
	}
}