mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-08 13:56:09 +02:00
ofproto_v1_5_parser: Fix unresolved structure references
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
e24fd2fd79
commit
a1fd26f89a
@ -3223,11 +3223,11 @@ class OFPMeterDescStats(StringifyMixin):
|
||||
|
||||
(meter_config.length, meter_config.flags,
|
||||
meter_config.meter_id) = struct.unpack_from(
|
||||
ofproto.OFP_METER_CONFIG_PACK_STR, buf, offset)
|
||||
offset += ofproto.OFP_METER_CONFIG_SIZE
|
||||
ofproto.OFP_METER_DESC_PACK_STR, buf, offset)
|
||||
offset += ofproto.OFP_METER_DESC_SIZE
|
||||
|
||||
meter_config.bands = []
|
||||
length = ofproto.OFP_METER_CONFIG_SIZE
|
||||
length = ofproto.OFP_METER_DESC_SIZE
|
||||
while length < meter_config.length:
|
||||
band = OFPMeterBandHeader.parser(buf, offset)
|
||||
meter_config.bands.append(band)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user