Ethereal-dev: [Ethereal-dev] Newbie::Naive Question :D

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

From: "fabio matturro" <fabiomax3@xxxxxxxxxxx>
Date: Sat, 19 Nov 2005 10:48:08 +0100
Hello,
I am a first timers at developing plugins, then - please - be indulgent : )
I would like to dissect a UDP-based protocol. As far as I've understood, this protocol doesn't always connect to the same port (neverthless the master uses a range of ports starting from 1025, its slaves from about 32000). I have started reading README.developer and other stuff and it suggests, as a very first step, to write a useless dissector which simply labels the protocol.
In order to do this it initializes:

static int global_foo_port = 1234;

and lines further:

disector.add ("udp.port", global_foo_port, foo_handle);

Here's the problem

Since there's no predetermined ports how can I initialize the dissector for this protocol? [I've read something about "conversion", not very thoroughly, though. Could it be the answer to my problems :D?]

Thank you,
Matt

_________________________________________________________________
Blocca le pop-up pubblicitarie con MSN Toolbar! http://toolbar.msn.it/