summaryrefslogtreecommitdiffstats
path: root/tests/py/netdev/fwd.t.payload
blob: f03077a60e2d1c91183bb32c1ed439025e2624e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# fwd to "lo"
netdev test-netdev ingress 
  [ immediate reg 1 0x00000001 ]
  [ fwd sreg_dev 1 ]

# fwd to meta mark map { 0x00000001 : "lo", 0x00000002 : "lo"}
__map%d test-netdev b
__map%d test-netdev 0
	element 00000001  : 00000001 0 [end]	element 00000002  : 00000001 0 [end]
netdev test-netdev ingress 
  [ meta load mark => reg 1 ]
  [ lookup reg 1 set __map%d dreg 1 ]
  [ fwd sreg_dev 1 ]

# fwd ip to 192.168.2.200 device "lo"
netdev test-netdev ingress 
  [ immediate reg 1 0x00000001 ]
  [ immediate reg 2 0xc802a8c0 ]
  [ fwd sreg_dev 1 sreg_addr 2 nfproto 2 ]