---
 ryu/ofproto/ofproto_v1_3.py        | 4 ++--
 ryu/ofproto/ofproto_v1_3_parser.py | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ryu/ofproto/ofproto_v1_3.py b/ryu/ofproto/ofproto_v1_3.py
index 021b2d5..1ff6428 100644
--- a/ryu/ofproto/ofproto_v1_3.py
+++ b/ryu/ofproto/ofproto_v1_3.py
@@ -65,7 +65,7 @@ OFPT_METER_MOD = 29    # Controller/switch message
 OFP_MAX_PORT_NAME_LEN = 16
 OFP_ETH_ALEN = 6
 OFP_ETH_ALEN_STR = str(OFP_ETH_ALEN)
-_OFP_PORT_PACK_STR = 'I4x' + OFP_ETH_ALEN_STR + 'B' + '2x' + \
+_OFP_PORT_PACK_STR = 'I4x' + OFP_ETH_ALEN_STR + 's' + '2x' + \
                      str(OFP_MAX_PORT_NAME_LEN) + 's' + 'IIIIIIII'
 OFP_PORT_PACK_STR = '!' + _OFP_PORT_PACK_STR
 OFP_PORT_SIZE = 64
@@ -428,7 +428,7 @@ OFP_BUCKET_SIZE = 16
 assert calcsize(OFP_BUCKET_PACK_STR) == OFP_BUCKET_SIZE

 # struct ofp_port_mod
-OFP_PORT_MOD_PACK_STR = '!I4x' + OFP_ETH_ALEN_STR + 'B2xIII4x'
+OFP_PORT_MOD_PACK_STR = '!I4x' + OFP_ETH_ALEN_STR + 's2xIII4x'
 OFP_PORT_MOD_SIZE = 40
 assert (calcsize(OFP_PORT_MOD_PACK_STR) + OFP_HEADER_SIZE ==
         OFP_PORT_MOD_SIZE)
diff --git a/ryu/ofproto/ofproto_v1_3_parser.py
b/ryu/ofproto/ofproto_v1_3_parser.py
index 7ef01b8..f6f4969 100644
--- a/ryu/ofproto/ofproto_v1_3_parser.py
+++ b/ryu/ofproto/ofproto_v1_3_parser.py
@@ -246,7 +246,7 @@ class OFPGetConfigReply(MsgBase):
         msg = super(OFPGetConfigReply, cls).parser(datapath, version, msg_type,
                                                    msg_len, xid, buf)
         msg.flags, msg.miss_send_len = struct.unpack_from(
-            ofproto_v1_3.OFP_SWITCH_CONFIG_PACK_STR, buf,
+            ofproto_v1_3.OFP_SWITCH_CONFIG_PACK_STR, msg.buf,
             ofproto_v1_3.OFP_HEADER_SIZE)
         return msg

-- 
1.7.12.4

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to