Ethereal-dev: [ethereal-dev] Several protocol_register() caals in plugin registration procedur
Hi
I have created some dissectors for a couple of protocols and now
I want to convert them to be used in a plugin.
Can I call the proto_register_xxx() procedures from these protocols
from the plugin_init() procedure in the following way?
DLLEXPORT void
plugin_init(plugin_address_table_t *pat)
{
plugin_address_table_init(pat);
dfilter_cleanup();
/*
* Initialize all the protocols in this plugin
*/
proto_register_q931();
proto_reg_handoff_q931(); /* To get my version of the Q.931 registered as a heuristic dissector. */
proto_register_h225();
proto_register_h245();
proto_register_tpkt();
proto_register_rtcp();
proto_register_rtp();
proto_register_h261();
dfilter_init();
}
Some of these register routines try to regsiter themselves or
others as heuristic dissectors, can I do that here? I ask this
because in normal dissectors you need to use the handoff()
procedures to do that..
--
Andreas Sikkema
andreas.sikkema@xxxxxxxxxxx
"Standing barefoot in a river of clues, most people would
not get their toes wet." - Brian Kantor in a.s.r.