Ethereal-dev: Re: [Ethereal-dev] Access to packet list field from dissector?

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

From: Guy Harris <guy@xxxxxxxxxx>
Date: Tue, 21 May 2002 12:37:57 -0700
On Tue, May 21, 2002 at 03:24:46PM -0400, Mike Frisch wrote:
> Can I set/modify the contents of the "Info" field in the packet list
> from a dissector?

Yes - if you couldn't do it, that field wouldn't ever be set, as it's
only dissectors that set it. :-)

Search through the dissector code for references to COL_INFO to find the
code in various dissectors that does that.

See section 1.5 "Functions to handle columns in the traffic summary
window" in "doc/README.developer".  There are functions to set the
field, and functions to append to it.

> Do any other dissectors do this?

Most of them do.