summaryrefslogtreecommitdiffstats
path: root/tests/py/bridge/meta.t.payload
blob: 0a39842aedf3edf7b3bab95d574ecbe0d37013c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# meta obrname "br0"
bridge test-bridge input
  [ meta load bri_oifname => reg 1 ]
  [ cmp eq reg 1 0x00307262 0x00000000 0x00000000 0x00000000 ]

# meta ibrname "br0"
bridge test-bridge input
  [ meta load bri_iifname => reg 1 ]
  [ cmp eq reg 1 0x00307262 0x00000000 0x00000000 0x00000000 ]

# meta ibrvproto vlan
bridge test-bridge input
  [ meta load bri_iifvproto => reg 1 ]
  [ cmp eq reg 1 0x00000081 ]

# meta ibrpvid 100
bridge test-bridge input
  [ meta load bri_iifpvid => reg 1 ]
  [ cmp eq reg 1 0x00000064 ]

# meta protocol ip udp dport 67
bridge test-bridge input
  [ meta load protocol => reg 1 ]
  [ cmp eq reg 1 0x00000008 ]
  [ meta load l4proto => reg 1 ]
  [ cmp eq reg 1 0x00000011 ]
  [ payload load 2b @ transport header + 2 => reg 1 ]
  [ cmp eq reg 1 0x00004300 ]

# meta protocol ip6 udp dport 67
bridge test-bridge input
  [ meta load protocol => reg 1 ]
  [ cmp eq reg 1 0x0000dd86 ]
  [ meta load l4proto => reg 1 ]
  [ cmp eq reg 1 0x00000011 ]
  [ payload load 2b @ transport header + 2 => reg 1 ]
  [ cmp eq reg 1 0x00004300 ]