Ethereal-dev: [Ethereal-dev] cannot find_dissector

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: HelgeKruse@xxxxxxxxxxx (Helge Kruse)
Date: Tue, 26 Apr 2005 17:39:31 +0200 (CEST)
I have a protocol, where a TFTP server is listenening at non-standard port. I can mark this conversation and choose "Decode As..." in the UI. I need to do this in my dissector plugin automatically, when the transfer starts with my destination port. Therefore I called:

tftp_handle = find_dissector("tftp");
dissector_add("udp.port", m_pinfo->destport, tftp_handle);

Unfortunately, I find_dissector returns always NULL, even if I call it in plugin_reg_handoff().

How can automate the "Decode As..." programatically?

/Helge