Ethereal-dev: Re: [Ethereal-dev] List of protocols in a file?

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: Sun, 23 Jun 2002 13:19:36 -0700
On Sun, Jun 23, 2002 at 04:49:37PM +0000, didier wrote:
> Does ethereal keep a list of protocols seen in the capture file?

It doesn't generate a list when it reads the file in, and keep it in a
data structure in memory accessible to other code in Ethereal, if that's
what you mean.

However, the "Protocol Hierarchy Statistics" item under the "Tools" menu
scans the packets currently being displayed (which, if you have a
display filter in effect, won't necessarily be all the packets) and
generates statistics about the protocols that appear in the display,
which means it lists the protocols - although, as a given packet can
have more than one instance of a given protocol (think "IP inside Frame
Relay inside GRE inside IP inside Ethernet" - somebody sent, either to
me or to the list, a capture showing exactly that), the tree-structured
display that item shows can show a given protocol more than once.