Wireshark mailing list archives
Re: Subtree array purpose
From: Jeff Morriss <jeff.morriss.ws () gmail com>
Date: Fri, 29 Apr 2011 16:58:30 -0400
Max wrote:
Can anybody please explain the purpose of subtree array (ett_...)? I don't get why should i have several different etts in my dissector's code, while there is no information assotiated with these integers.
Each ett_ stores information about whether the particular subtree created using that variable is expanded or not.
For example, if a GUI user expands subtree B (but not A or C) and if the 3 subtrees use different ett_ variables then when the user clicks on the next packet then only subtree B will be automatically expanded. I find this behavior extremely useful when I'm comparing information (hanging off that subtree) between packets.
If OTOH only one ett_ variable is used for all 3 subtrees then all 3 subtrees in the next packet will be either expanded or collapsed (depending on the last action of the user on the last packet--whether they last expanded a subtree or collapsed one).
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- Subtree array purpose Max (Apr 29)
- Re: Subtree array purpose Stephen Fisher (Apr 29)
- Re: Subtree array purpose Jeff Morriss (Apr 29)
- Re: Subtree array purpose Max (Apr 29)