From: Zhang Dongya <[email protected]>

---
 ryu/ofproto/ofproto_v1_3_parser.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ryu/ofproto/ofproto_v1_3_parser.py 
b/ryu/ofproto/ofproto_v1_3_parser.py
index a1e7315..3f4ed99 100644
--- a/ryu/ofproto/ofproto_v1_3_parser.py
+++ b/ryu/ofproto/ofproto_v1_3_parser.py
@@ -1390,7 +1390,9 @@ class OFPPort(collections.namedtuple('OFPPort', (
     @classmethod
     def parser(cls, buf, offset):
         port = struct.unpack_from(ofproto_v1_3.OFP_PORT_PACK_STR, buf, offset)
-        return cls(*port)
+        ofpport = cls(*port)
+        ofpport.length = ofproto_v1_3.OFP_PORT_SIZE
+        return ofpport
 
 
 @_register_parser
-- 
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