From 9844c86901b3eb496e0bfeb8d70cd89ff4bd7672 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Tue, 23 Jul 2013 16:03:33 +0900 Subject: [PATCH] of13 OFPMatchField: make this safe to serialize multiple times this will be used by OFPMatch old api compat code.$ Signed-off-by: YAMAMOTO Takashi Signed-off-by: FUJITA Tomonori --- ryu/ofproto/ofproto_v1_3_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryu/ofproto/ofproto_v1_3_parser.py b/ryu/ofproto/ofproto_v1_3_parser.py index 7bd5432e..3542b5d0 100644 --- a/ryu/ofproto/ofproto_v1_3_parser.py +++ b/ryu/ofproto/ofproto_v1_3_parser.py @@ -1024,7 +1024,7 @@ class OFPMatchField(StringifyMixin): def _put_header(self, buf, offset): ofproto_parser.msg_pack_into('!I', buf, offset, self.header) - self.length += 4 + self.length = 4 def _put(self, buf, offset, value): ofproto_parser.msg_pack_into(self.pack_str, buf, offset, value)