Ethereal-dev: Re: [Ethereal-dev] Design question about multiple-packet packets

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: Wed, 22 Jan 2003 09:07:56 -0800
On Wed, Jan 22, 2003 at 08:55:07AM -0600, William Mulvihill wrote:
> I'm already leaning towards having a tree for 
> every packet (so like Packet 1, Packet 2, etc are each their own tree 
> that have their own fully interpreted packets).

That's exactly how you should do it.

> But if I reuse the 
> hf_proto_fieldnames for each tree (each packet within the packet), 
> aren't I going to get in trouble somewhere down the road?

No.  You aren't.  There are lots of dissectors that do precisely that.