Ethereal-dev: Re: [Ethereal-dev] A dynamic number of subtrees

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

From: Stefano Pettini <spettini@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 03 Jan 2005 00:44:39 +0100
Guy Harris wrote:

This *does* mean that if you have two IP address TLVs in a packet, and you open one of them up but not the other, and you then select a different packet and then go back to the first packet, *both* IP address TLVs will be opened up.

Ok, if I have 2 IP addresses in each packet, I could use 2 different etts to keep their subtrees separated.

But if I have N IP addresses, with N different from packet to packet, how can (or should) I implement etts and subtrees logic?

Probably, if N is limited, I can register Nmax etts in advance.

there's not necessarily any indication that the second TLV is the one you always want opened (maybe you want the next-to-the-last TLV opened), so it's not clear that'd be the right thing to do.

This is not important. If the user navigates across packets, he could find these subtrees always closed.

If I register a common set of etts, the state of the subtrees will be kept from packet to packet, for subtrees present in both. Am I right? This seems the right way.

Thanks.

Ciao
Stefano