Ethereal-dev: [Ethereal-dev] Developpement of new dissector

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

From: "Didier Cauvet" <dcauvet@xxxxxxxxxxxxxx>
Date: Thu, 9 Dec 2004 09:33:27 +0100
Hi,
I try to add a new protocol on Ethereal. I'm working on W2K and Visual C++ 6.0.
 
I get sources codes (last release) and can build Ethereal .
 
It's an HDLC type protocol :
 
 1 byte Add dest, 1 byte Add src, 1 byte Code, x byte data (max 128 octets)
 
We have capture files (in libpcap file format). We can view these files on Ethereal .
In Windows Packet list, when all protocol are disable : col Protocol = UNKNOWN , col Info = WTAP_ENCAP=1.
In Windows Packet Bytes : I visualise my Frame corectely
 
Followig the Readme.developper , I have developped a new dissector (packet-mzhdlc.c) .
 
After generation, in menu Analyse, Enabled Protocols, I can see my new protocol (MZHDLC). When I clik on Filter, I can see the 3 records that I want to work.
 
BUT  : There is no action in the differents windows .
 
With Windows debugging  tools, I had try to break in the dissect_mzhdlc function, there is no call .
 
Is anabody help me ?
 
Cordialy
 
Didier
 

Attachment: F_04.cap
Description: Binary data

Attachment: packet-mzhdlc.c
Description: Binary data

Attachment: Makefile.common
Description: Binary data