Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
ryu/ofproto/ofproto_v1_3_parser.py | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/ryu/ofproto/ofproto_v1_3_parser.py
b/ryu/ofproto/ofproto_v1_3_parser.py
index e669493..42e28f7 100644
--- a/ryu/ofproto/ofproto_v1_3_parser.py
+++ b/ryu/ofproto/ofproto_v1_3_parser.py
@@ -195,12 +195,9 @@ class OFPExperimenter(MsgBase):
(msg.experimenter, msg.exp_type) = struct.unpack_from(
ofproto_v1_3.OFP_EXPERIMENTER_HEADER_PACK_STR, msg.buf,
ofproto_v1_3.OFP_HEADER_SIZE)
- return msg
+ msg.data = msg.buf[ofproto_v1_3.OFP_EXPERIMENTER_HEADER_SIZE:]
- def _serialize_body(self):
- msg.pack_into(ofproto_v1_3.OFP_EXPERIMENTER_HEADERPACK_STR,
- self.buf, ofproto_v1_3.OFP_HEADER_SIZE,
- self.experimenter, self.exp_type)
+ return msg
@_set_msg_type(ofproto_v1_3.OFPT_FEATURES_REQUEST)
--
1.8.1.5
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel