Ethereal-dev: Re: [Ethereal-dev] UDP dissector with unknown port

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

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Mon, 6 Oct 2003 12:03:57 -0700

On Oct 5, 2003, at 10:16 PM, Tomas Kukosa wrote:

I think better than
dissector_add("udp.port", 0, xxx_handle);
is
dissector_add_handle("udp.port", xxx_handle);

Yes, the latter is the preferred way of registering the XXX dissector as a protocol for a dissector that runs atop a particular protocol, but that doesn't have a fixed "port" (selector) value for that protocol, and that isn't a heuristic dissector for that protocol (which means you need to use "Decode As..." or "-d" to use it).