diff options
author | Philipp Aeschlimann <aepp@zhaw.ch> | 2013-05-17 11:29:53 +0200 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2013-05-18 06:22:45 +0900 |
commit | 21692141dc7e8be2d44338ce4eff5af584e4ff8f (patch) | |
tree | 24c3c5fd1b292260a11078bbaa814906dd264dd6 | |
parent | 3b7d91e922559142edb3a105538828a9c1dfc717 (diff) |
of13: Fix for OFPQueueGetConfigReply/Request
Signed-off-by: Philipp Aeschlimann <aepp@zhaw.ch>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/ofproto/ofproto_v1_3_parser.py | 4 |
1 files 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 |