Ethereal-dev: Re: [Ethereal-dev] Creating a new Dissector

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

From: "Ronnie Sahlberg" <sahlberg@xxxxxxxxxxxxxxxx>
Date: Mon, 30 Sep 2002 19:02:58 +1000
For a simple UDP protocol example, see
packet-xyplex.c

Print this dissector on hardcopy and use it as an example for your protocol.

Also study the READMEs down in doc
You might want to study how FT_UINT[8|16|32] works
and how to use proto_tree_add_item().

Give it a go and post your result on the dev list.



----- Original Message -----
From: pevee
To: ethereal-dev@xxxxxxxxxxxx
Sent: Monday, September 30, 2002 5:21 PM
Subject: [Ethereal-dev] Creating a new Dissector


Hi,

The packet will be part of a UDP packet. In other words, it will be in the
UDP Data Region...
The packet will have roughly the followinf format:-

0            1            2            3            4            5
6            7            8
    Ver         Type       Chap     Rsv             Serial No
Req ID


Thank you.

Calvin Kaiwen