Ethereal-dev: Re: [ethereal-dev] Port numbers and dissectors

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

From: Laurent Deniel <deniel@xxxxxxxxxxx>
Date: Thu, 24 Aug 2000 16:25:58 +0200
Glen Turner wrote:
> 
> I have written a dissector for Cisco Systems' NetFlow Export
> packets.
> 
> Unfortunately, there is no fixed UDP port number for this
> traffic -- it is configured into the router and the client.
> 
> At the moment I've just hard-coded the port number we use,
> as I used a dissector that used a fixed port number as the
> starting point.
> 
> What is the recommended way to make this work with any port
> number -- do I have to turn it into a plugin?

Look at the diameter dissector which registers preferences for the
TCP and UDP ports it uses.

--
Laurent DENIEL        | E-mail: deniel@xxxxxxxxxxx
Paris, FRANCE         |         laurent.deniel@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
                      | WWW   : http://www.worldnet.fr/~deniel
    All above opinions are personal, unless stated otherwise.