From a8938cb61e7f575a6af3d504064d61a11834a6ef Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Sat, 7 Jul 2012 22:51:12 -0700 Subject: [PATCH] of1.2: fix OFPActionSetField padding Signed-off-by: FUJITA Tomonori --- ryu/ofproto/ofproto_v1_2_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryu/ofproto/ofproto_v1_2_parser.py b/ryu/ofproto/ofproto_v1_2_parser.py index d0d3120f..d62f0cc9 100644 --- a/ryu/ofproto/ofproto_v1_2_parser.py +++ b/ryu/ofproto/ofproto_v1_2_parser.py @@ -743,7 +743,7 @@ class OFPActionSetField(OFPAction): msg_pack_into('!HH', buf, offset, self.type, self.len) self.field.serialize(buf, offset + 4) offset += ofproto_v1_2.OFP_ACTION_SET_FIELD_SIZE + oxm_len - ofproto_parser.msg_pack_into("%dx" % pad_len, buf, offset) + ofproto_parser.msg_pack_into("%dx" % (oxm_pad + pad_len), buf, offset) @OFPAction.register_action_type(