summaryrefslogtreecommitdiffstats
path: root/tests/py/inet/ip.t.payload.netdev
blob: 95be9194f2fed67f463e8bd85b02ce1870ac13a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# ip saddr . ip daddr . ether saddr { 1.1.1.1 . 2.2.2.2 . ca:fe:ca:fe:ca:fe }
__set%d test-netdev 3
__set%d test-netdev 0
	element 01010101 02020202 fecafeca 0000feca  : 0 [end]
netdev test-netdev ingress 
  [ meta load protocol => reg 1 ]
  [ cmp eq reg 1 0x00000008 ]
  [ meta load iiftype => reg 1 ]
  [ cmp eq reg 1 0x00000001 ]
  [ payload load 4b @ network header + 12 => reg 1 ]
  [ payload load 4b @ network header + 16 => reg 9 ]
  [ payload load 6b @ link header + 6 => reg 10 ]
  [ lookup reg 1 set __set%d ]