Ethereal-dev: Re: [Ethereal-dev] Cookbook for adding new file formats?

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

From: Guy Harris <gharris@xxxxxxxxx>
Date: Mon, 24 Jun 2002 01:44:32 -0700
On Fri, Jun 21, 2002 at 04:05:29PM -0700, Dr. Richard A. Karp wrote:
> I'm a potential novice source code contributor to Ethereal, and the project
> I'd like to undertake is adding support for a new type of test data file,
> that made by my company, Catapult.  If necessary, I'll go figure out
> how to do it from the source, but I was wondering if there was any cookbook
> or hint book that might make this task easier?

Unfortunately, we don't have any documentation on how to add support for
new capture file types.

The simplest capture file reader is probably the reader for Sun's snoop,
in "wiretap/snoop.c"; you might look at that module, if the test data
files are binary files.

If the test files are text files, with, for example, hex dumps of packet
data, look at "ascend-*.[chyl]", or "toshiba.c".