Ethereal-dev: [Ethereal-dev] Parsing a Non-Network packet

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

From: Senthil Sundaram <sen@xxxxxxxxxxxx>
Date: Mon, 02 May 2005 17:45:31 -0700
Hi,

Can I use ethereal to parse a packet that is not a packet captured on the network. For example that packet does not have an Ethernet header or IP header or anything like that. It is file in my own custom format , lets call it XYZ packet. I would like to register a plugin called packet-XYZ, whenever Ethereal sees this packet.

Is this possible? How do I make ethereal understand my custom packet and open it. I remember some one on this list mention I need to use wiretap library to do this.

How do I register my plugin handler, i.e, to which layer to I register my handler?

Thanks
Senthil