diff options
author | HIYAMA Manabu <hiyama.manabu@po.ntts.co.jp> | 2012-11-01 17:13:52 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2012-11-01 17:18:55 +0900 |
commit | 6eeddaa2a43c86f9c431330125be001ff062698a (patch) | |
tree | b058d09194d01d3b57f41cb13c8a9321f8837f56 | |
parent | 4f7b30dad2a0d5012b1c2b0206f4a7b569a2a78e (diff) |
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>
-rw-r--r-- | ryu/ofproto/ofproto_v1_2_parser.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ryu/ofproto/ofproto_v1_2_parser.py b/ryu/ofproto/ofproto_v1_2_parser.py index 4a5017dc..37d1ee1d 100644 --- a/ryu/ofproto/ofproto_v1_2_parser.py +++ b/ryu/ofproto/ofproto_v1_2_parser.py @@ -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, |