Ethereal-dev: Re: [Ethereal-dev] custom printing capabilities

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: Thu, 19 Feb 2004 02:58:50 -0800
On Thu, Feb 19, 2004 at 05:51:58AM -0500, Tomer Shani wrote (in HTML,
    which not everybody's mail reader can conveniently read - use
    plain-text mail whenever possible):
> I would like to add some custom printing/saving capablities to a plugin
> i have written
> 
> these capabilities should include the ability to print only some of the
> protocol layers (print from tcp up not including ip,ethernet...), and
> also print the binary data only for the corresponding layers.
> 
> can anyone think of a 'good' way of doing this (without making any
> ethereal code changes)

No, because there's no mechanism in Ethereal by which a packet dissector
can change the way printing is done or supply its own UI for printing,
and a "plugin" can currently only be a packet dissector.

Besides, the capabilities you describe don't sound like something that
should be tied to a particular protocol dissector - they should be an
option for the print dialog.