diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2012-08-27 13:18:44 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2012-08-27 17:01:29 +0900 |
commit | b3e491349a11414e024e977d4d008c89b72ab959 (patch) | |
tree | 3660171d1060e5b7d0f03a2aa8f0cba8dc88c43e | |
parent | 3c339e77cc67f296056f990e57fb4f52d18d5cad (diff) |
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 <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/ofproto/ofproto_v1_2_parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |