aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-m2pa.c
diff options
context:
space:
mode:
authormartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>2007-03-12 11:21:02 +0000
committermartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>2007-03-12 11:21:02 +0000
commit29bf59039973e94b28d2574d5695eb64d0091857 (patch)
tree5217d57444fbccfc1e332c31dbd76a264b84a89a /epan/dissectors/packet-m2pa.c
parent53225755e5412e12cbee9d2340976b564db4e0e9 (diff)
Make m2pa dissector findable by name.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21020 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-m2pa.c')
-rw-r--r--epan/dissectors/packet-m2pa.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/dissectors/packet-m2pa.c b/epan/dissectors/packet-m2pa.c
index 1a7522ffa0..92a0c92431 100644
--- a/epan/dissectors/packet-m2pa.c
+++ b/epan/dissectors/packet-m2pa.c
@@ -584,6 +584,9 @@ proto_register_m2pa(void)
proto_register_field_array(proto_m2pa, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
+ /* Allow other dissectors to find this one by name. */
+ register_dissector("m2pa", dissect_m2pa, proto_m2pa);
+
m2pa_module = prefs_register_protocol(proto_m2pa, proto_reg_handoff_m2pa);
prefs_register_enum_preference(m2pa_module, "version", "M2PA version", "Version used by Wireshark", &m2pa_version, m2pa_version_options, FALSE);