summaryrefslogtreecommitdiffstats
path: root/tests/py/inet/map.t.payload.netdev
blob: 27a3ca8f3b8148656dafcf0fd349af74113b2aec (plain)
1
2
3
4
5
6
7
8
9
10
11
# mark set ip saddr map { 10.2.3.2 : 0x0000002a, 10.2.3.1 : 0x00000017}
map%d test-netdev b
map%d test-netdev 0
	element 0103020a  : 00000017 0 [end]	element 0203020a  : 0000002a 0 [end]
netdev test-netdev ingress
  [ meta load protocol => reg 1 ]
  [ cmp eq reg 1 0x00000008 ]
  [ payload load 4b @ network header + 12 => reg 1 ]
  [ lookup reg 1 set map%d dreg 1 ]
  [ meta set mark with reg 1 ]