summaryrefslogtreecommitdiffstats
path: root/plugins/epan/mate/packet-mate.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--plugins/epan/mate/packet-mate.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/epan/mate/packet-mate.c b/plugins/epan/mate/packet-mate.c
index 97774cd..2b36659 100644
--- a/plugins/epan/mate/packet-mate.c
+++ b/plugins/epan/mate/packet-mate.c
@@ -368,6 +368,15 @@ proto_reg_handoff_mate(void)
*/
set_postdissector_wanted_hfids(mate_handle,
mc->wanted_hfids);
+ /* XXX: Due to #17877, any protocol added to the tree with length -1
+ * that changes its length later (and there are many, such as TCP)
+ * doesn't actually change its length unless the tree is visible,
+ * which means that entire range checking work in MATE to split up
+ * multiple PDUs of the target protocol in the same frame doesn't
+ * work. Set the tree as visible as with Lua postdissectors that
+ * need all fields. It's overkill and bad for performance, though.
+ */
+ epan_set_always_visible(TRUE);
initialize_mate_runtime(mc);
}