summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2016-02-10 13:58:08 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-02-10 13:52:48 +0900
commita1fd26f89a31810cce3a3c1163671bb644cb591b (patch)
tree8c75ba51ed71db85d812fc9bd6231f5c285bb70b
parente24fd2fd7904c5df1b7db513c099c1ac9c9280bf (diff)
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>
-rw-r--r--ryu/ofproto/ofproto_v1_5_parser.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ryu/ofproto/ofproto_v1_5_parser.py b/ryu/ofproto/ofproto_v1_5_parser.py
index a36297e2..24672ffb 100644
--- a/ryu/ofproto/ofproto_v1_5_parser.py
+++ b/ryu/ofproto/ofproto_v1_5_parser.py
@@ -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)