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: Tomas Kukosa <tomas.kukosa@xxxxxxxxxxx>
Date: Mon, 06 Oct 2003 07:16:50 +0200
Andreas Sikkema wrote:
> 
> Erwin Rol wrote:
> 
> > How should i register a dissector for a protocol that sits inside UDP
> > packets but doesn't have a fixed port number ?
> 
> With 0 0 port for the correct protocol (UDP or TCP). This way it is
> accessable via Decode As...

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

Tom