From b3e491349a11414e024e977d4d008c89b72ab959 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Mon, 27 Aug 2012 13:18:44 +0900 Subject: of1.2: fix OFPFlowRemoved parser Fix the following: ryu/ofproto/ofproto_v1_2_parser.py", line 1701, in parser type_, length = struct.unpack_from('!HH', buf, offset) TypeError: unpack_from() argument 1 must be string or read-only buffer, not bytearray Signed-off-by: FUJITA Tomonori --- ryu/ofproto/ofproto_v1_2_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryu/ofproto/ofproto_v1_2_parser.py b/ryu/ofproto/ofproto_v1_2_parser.py index b93969c4..4a5017dc 100644 --- a/ryu/ofproto/ofproto_v1_2_parser.py +++ b/ryu/ofproto/ofproto_v1_2_parser.py @@ -273,7 +273,7 @@ class OFPFlowRemoved(MsgBase): offset = (ofproto_v1_2.OFP_FLOW_REMOVED_SIZE - ofproto_v1_2.OFP_MATCH_SIZE) - msg.match = OFPMatch.parser(buf, offset) + msg.match = OFPMatch.parser(msg.buf, offset) return msg -- cgit v1.2.3