Ethereal-dev: Re: [Ethereal-dev] referencing specific tcp protocol data

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: Thu, 28 Mar 2002 12:04:07 -0800
On Thu, Mar 28, 2002 at 11:18:29AM +0000, Phil Williams wrote:
> So it is not possible to look up by name, but are these fields referred
> to by any identifier?

Yes, they are, but...

> If so, would it be possible to look up these values?

...those identifiers are static variables in the dissectors.

One *could* export them, but that would require code changes, so you
might as well just put a look-up-by-name feature into "epan/proto.c", so
that you don't have to modify dissectors in order to let other modules
get at fields they've registered.