blob: c43a0c53856ab03712190e4fddd2476fa66f4958 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# add @map5 { ip saddr . ip daddr : meta mark }
ip test-ip4 input
[ payload load 4b @ network header + 12 => reg 1 ]
[ payload load 4b @ network header + 16 => reg 9 ]
[ meta load mark => reg 10 ]
[ dynset add reg_key 1 set map5 sreg_data 10 ]
# add @map1 { ip saddr . ip daddr : meta mark }
ip test-ip4 input
[ payload load 4b @ network header + 12 => reg 1 ]
[ payload load 4b @ network header + 16 => reg 9 ]
[ meta load mark => reg 10 ]
[ dynset add reg_key 1 set map1 sreg_data 10 ]
|