summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2012-07-05 14:30:03 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2012-07-06 01:06:30 +0900
commit8de8d653cc9db576852e00265871f709dc98d995 (patch)
tree693989c3707c888f1dee62363c48d5ef3e5502bd
parentf132d53fb12329c59a4400843437159344936341 (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.py6
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()