Cleaning up one reader a bit
diff --git a/wireshark_gen/templates/_oftype_readers.lua b/wireshark_gen/templates/_oftype_readers.lua
index 10f13ca..81d7e30 100644
--- a/wireshark_gen/templates/_oftype_readers.lua
+++ b/wireshark_gen/templates/_oftype_readers.lua
@@ -57,11 +57,11 @@
function read_of_match_t(reader, version, subtree, field_name)
if version == 1 then
- dissect_of_match_v1_v1(reader, subtree:add(fields[field_name]))
+ dissect_of_match_v1_v1(reader, subtree:add("of_match"))
elseif version == 2 then
- dissect_of_match_v2_v2(reader, subtree:add(fields[field_name]))
+ dissect_of_match_v2_v2(reader, subtree:add("of_match"))
elseif version >= 3 then
- dissect_of_match_v3_v3(reader, subtree:add(fields[field_name]))
+ dissect_of_match_v3_v3(reader, subtree:add("of_match"))
end
end