Ethereal-dev: Re: [Ethereal-dev] Writing Decoders for Ethereal

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

From: Michael Tuexen <Michael.Tuexen@xxxxxxxxxxxxxxxxx>
Date: Sun, 27 Apr 2003 21:03:41 +0200
Just write your dissector and register for
- a sctp.ppi and/or sctp.port
- a udp.port

After doing this your dissector will be called by the SCTp
and UDP dissector.

Best regards
Michael

On Sunday, Apr 27, 2003, at 19:18 Europe/Berlin, Erwin Rol wrote:

On Sun, 2003-04-27 at 19:04, S. Faizi wrote:
Hi,

I am interested in writing a decoder for a proprietary protocol. This
proprietary protocol is carried by SCTP data chunk, and a few messages
are carried by UDP. I started by reading "README.developer" file in
code directory. Since this would be the first time I would be writing
a decoder for ethereal, I wanted to know if there is a better resource
available to get me started quickly. Is there an online tutorial etc.


What i did was just take a look at other decoders, the general setup is
the same for all of them. And really not that hard, within a few hours
you should have a decoder framework in place. For more advanced tricks
find a decoder that does what you need and look at its source.

The source is the best tutorial there is, one of the good things of
OpenSource.


- Erwin

Regards,
Sal
--
              Dipl.-Ing. Erwin Rol - Software Engineering
tel: +49-(0)8024-479377 gsm: +49-(0)171-6929198 fax: +49-(0)8024-479379
                        email: erwin@xxxxxxxxxx
<signature.asc>