diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2012-07-05 14:30:03 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2012-07-06 01:06:30 +0900 |
commit | 8de8d653cc9db576852e00265871f709dc98d995 (patch) | |
tree | 693989c3707c888f1dee62363c48d5ef3e5502bd | |
parent | f132d53fb12329c59a4400843437159344936341 (diff) |
of1.2: fix OFAActionCopyTtlOut and OFPActionCopyTtlIn's parsers
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/ofproto/ofproto_v1_2_parser.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ryu/ofproto/ofproto_v1_2_parser.py b/ryu/ofproto/ofproto_v1_2_parser.py index 8a19bc8c..228248e7 100644 --- a/ryu/ofproto/ofproto_v1_2_parser.py +++ b/ryu/ofproto/ofproto_v1_2_parser.py @@ -631,7 +631,8 @@ class OFPActionCopyTtlOut(OFPAction): @classmethod def parser(cls, buf, offset): - msg_pack_into(ofproto_v1_2.OFP_ACTION_HEADER_PACK_STR, buf, offset) + (type_, len_) = struct.unpack_from( + ofproto_v1_2.OFP_ACTION_HEADER_PACK_STR, buf, offset) return cls() @@ -643,7 +644,8 @@ class OFPActionCopyTtlIn(OFPAction): @classmethod def parser(cls, buf, offset): - msg_pack_into(ofproto_v1_2.OFP_ACTION_HEADER_PACK_STR, buf, offset) + (type_, len_) = struct.unpack_from( + ofproto_v1_2.OFP_ACTION_HEADER_PACK_STR, buf, offset) return cls() |