aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2006-01-24 00:26:57 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2006-01-24 00:26:57 +0000
commit1ff8c4272fb224666efd7427a9876a01311019c9 (patch)
tree7bd0e6363b39ccedfb52e81c484c482978ba4881 /plugins
parentda9e0c68313aff629b50f89d2b87276e8fa088ef (diff)
Add register_postdissector() to the API.
Dissectors registered with register_postdissector() will be called after all other dissectors have been called. Use it to register mate. svn path=/trunk/; revision=17089
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mate/packet-mate.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/mate/packet-mate.c b/plugins/mate/packet-mate.c
index 81d4165321..bdfd371bbe 100644
--- a/plugins/mate/packet-mate.c
+++ b/plugins/mate/packet-mate.c
@@ -367,7 +367,8 @@ void
proto_register_mate(void)
{
module_t *mate_module;
-
+ dissector_handle_t mate_handle;
+
proto_mate = proto_register_protocol("Meta Analysis Tracing Engine", "MATE", "mate");
register_dissector("mate",mate_tree,proto_mate);
mate_module = prefs_register_protocol(proto_mate, proto_reg_handoff_mate);
@@ -375,5 +376,9 @@ proto_register_mate(void)
"Configuration Filename",
"The name of the file containing the mate module's configuration",
&pref_mate_config_filename);
+
+ mate_handle = create_dissector_handle(mate_tree, proto_mate);
+
+ register_postdissector(mate_handle);
}