From 21692141dc7e8be2d44338ce4eff5af584e4ff8f Mon Sep 17 00:00:00 2001 From: Philipp Aeschlimann Date: Fri, 17 May 2013 11:29:53 +0200 Subject: of13: Fix for OFPQueueGetConfigReply/Request Signed-off-by: Philipp Aeschlimann Signed-off-by: FUJITA Tomonori --- ryu/ofproto/ofproto_v1_3_parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ryu/ofproto/ofproto_v1_3_parser.py b/ryu/ofproto/ofproto_v1_3_parser.py index 2f36859e..80a777da 100644 --- a/ryu/ofproto/ofproto_v1_3_parser.py +++ b/ryu/ofproto/ofproto_v1_3_parser.py @@ -2739,7 +2739,7 @@ class OFPPacketQueue(MsgBase): @classmethod def parser(cls, buf, offset): (msg.queue_id, msg.port, msg.len) = struct.unpack_from( - ofproto_v1_3.OFP_PACKET_QUEUE_PACK_STR, buf, offset) + ofproto_v1_3.OFP_PACKET_QUEUE_PACK_STR, msg.buf, offset) length = ofproto_v1_3.OFP_PACKET_QUEUE_SIZE offset += ofproto_v1_3.OFP_PACKET_QUEUE_SIZE @@ -2771,7 +2771,7 @@ class OFPQueueGetConfigReply(MsgBase): msg.queues = [] offset += ofproto_v1_3.OFP_QUEUE_GET_CONFIG_REPLY_SIZE - while offset < msg.length: + while offset < msg_len: queue = OFPPacketQueue.parser(buf, offset) msg.queues.append(queue) offset += queue.len -- cgit v1.2.3