of1.2: Fix OFPActionExperimenter parser

Signed-off-by: HIYAMA Manabu <hiyama.manabu@po.ntts.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
HIYAMA Manabu 2012-11-01 17:13:52 +09:00 committed by FUJITA Tomonori
parent 4f7b30dad2
commit 6eeddaa2a4

View File

@ -760,7 +760,9 @@ class OFPActionExperimenter(OFPAction):
def parser(cls, buf, offset):
(type_, len_, experimenter) = struct.unpack_from(
ofproto_v1_2.OFP_ACTION_EXPERIMENTER_HEADER_PACK_STR, buf, offset)
return cls(experimenter)
ex = cls(experimenter)
ex.len = len_
return ex
def serialize(self, buf, offset):
msg_pack_into(ofproto_v1_2.OFP_ACTION_EXPERIMENTER_HEADER_PACK_STR,