diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2012-06-25 15:22:37 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2012-06-26 09:44:06 +0900 |
commit | 6a647fd6353237ba09a5416115ce5cb4018fefba (patch) | |
tree | e5bae1310351bc5e22214b86503b5dae91a5c29b | |
parent | fd7bac0f2df49f34ee3e19b7aee60b1eb1d53b12 (diff) |
of1.2: improve OFPMatch parser
set type and length.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/ofproto/ofproto_v1_2_parser.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ryu/ofproto/ofproto_v1_2_parser.py b/ryu/ofproto/ofproto_v1_2_parser.py index c329ed31..d9c12fb4 100644 --- a/ryu/ofproto/ofproto_v1_2_parser.py +++ b/ryu/ofproto/ofproto_v1_2_parser.py @@ -1166,6 +1166,9 @@ class OFPMatch(object): match = OFPMatch() type_, length = struct.unpack_from('!HH', buf, offset) + match.type = type_ + match.length = length + # ofp_match adjustment offset += 4 length -= 4 |