Wireshark-dev: Re: [Wireshark-dev] proto tree
From: Amit Paliwal <[email protected]>
Date: Tue, 10 Jun 2008 10:32:31 +0530

Thanks a lot for your response it really give more insight into it, I just want to ask one more thing is it like for each protocol we have all its attribute at one level like suppose ethernet, so all ethernet attributes at one level than in next level all IP attributes like that.



"Gilbert Ramirez" <[email protected]>
Sent by: [email protected]

06/10/2008 07:15 AM

Please respond to
Developer support list for Wireshark <[email protected]>

To
"Developer support list for Wireshark" <[email protected]>
cc
Subject
Re: [Wireshark-dev] proto tree





On Tue, Jun 10, 2008 at 7:10 AM, Guy Harris <[email protected]> wrote:
>

>> what is the use of defining proto_tree and proto_item differently?
>
> I'm not sure what the rationale was for that.  Gilbert?
>


That's for a very ancient historical reason. The original release of
Ethereal used GtkTree and GtkTreeItem objects (I don't remember the
exact name, but something like that). The decode info was written
directly to the GUI widgets. When I add the proto_tree layer on top of
the GUI widgets, I mimicked the widget classes "just in case".  Not a
very good reason, but historical.

--gilbert
_______________________________________________
Wireshark-dev mailing list
[email protected]
https://wireshark.org/mailman/listinfo/wireshark-dev

______________________________________________________________________


______________________________________________________________________