summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYoshihiro Kaneko <ykaneko0929@gmail.com>2013-05-03 18:05:10 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2013-05-04 08:54:52 +0900
commit4dd3028d9c95a1d0299c73b6a7e4ede187392ae2 (patch)
tree39bbe8bfb4c5f57d037c727e46368fa5c560cbd6
parentdeccd3151af0b3013f7dffbdf7d96c30e0382d46 (diff)
of1.3: fix parser of OFPGetAsyncReply
The (un)pack format of OFPGetAsycnReply extracts 6 values. Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/ofproto/ofproto_v1_3_parser.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/ryu/ofproto/ofproto_v1_3_parser.py b/ryu/ofproto/ofproto_v1_3_parser.py
index c2d6500b..5997dcd1 100644
--- a/ryu/ofproto/ofproto_v1_3_parser.py
+++ b/ryu/ofproto/ofproto_v1_3_parser.py
@@ -2828,10 +2828,14 @@ class OFPGetAsyncReply(MsgBase):
msg = super(OFPGetAsyncReply, cls).parser(datapath, version,
msg_type, msg_len,
xid, buf)
- (msg.packet_in_mask, msg.port_status_mask,
- msg.flow_removed_mask) = struct.unpack_from(
+ (packet_in_mask_m, packet_in_mask_s,
+ port_status_mask_m, port_status_mask_s,
+ flow_removed_mask_m, flow_removed_mask_s) = struct.unpack_from(
ofproto_v1_3.OFP_ASYNC_CONFIG_PACK_STR, msg.buf,
ofproto_v1_3.OFP_HEADER_SIZE)
+ msg.packet_in_mask = [packet_in_mask_m, packet_in_mask_s]
+ msg.port_status_mask = [port_status_mask_m, port_status_mask_s]
+ msg.flow_removed_mask = [flow_removed_mask_m, flow_removed_mask_s]
return msg