summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ryu/ofproto/ofproto_v1_2_parser.py3
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