Ethereal-users: Re: [Ethereal-users] protocol tree

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

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Thu, 22 Feb 2001 00:45:31 -0800
On Thu, Feb 22, 2001 at 04:38:48PM +0530, amit shanbhag wrote:
> Could someone tell me if there is a way to access a subtree provided 
> i know the index of the subtree.

	...
 
> eg if i have ett_cu and i want cu_ tree how would i go about doing that

You wouldn't, because there could be *more than one* subtree with the
*same* "ett_" value.  "ett_" indices are for *types* of subtrees, not
for particular subtrees.

> Also tell me If there is a way to get a handle
> to a proto_item if its header field id or index is known.

The answer is the same - there can be *more than one* protocol tree item
with a given header field ID, so there is no way to get *a* handle to a
protocol tree item if its header field index is known.

What are you trying to do?