diff options
author | YAMAMOTO Takashi <yamamoto@valinux.co.jp> | 2013-07-23 16:03:21 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2013-07-31 21:06:37 +0900 |
commit | 4dfd93b1b26424d85c197568fbb7548e11af4a80 (patch) | |
tree | a65ecf20aa0ea5c00d57d81d4e11787772668d61 | |
parent | efcf9263b06b5f2a903f301e4ad8b02bc1a740a1 (diff) |
of12 OFPMatchField: make this safe to serialize multiple times
this will be used by OFPMatch old api compat code.
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/ofproto/ofproto_v1_2_parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |