From 4dfd93b1b26424d85c197568fbb7548e11af4a80 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Tue, 23 Jul 2013 16:03:21 +0900 Subject: [PATCH] of12 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_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 0f18d51b..e48aa7c3 100644 --- a/ryu/ofproto/ofproto_v1_2_parser.py +++ b/ryu/ofproto/ofproto_v1_2_parser.py @@ -2220,7 +2220,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)