Wireshark mailing list archives
Re: how to add a variable in protocol tree
From: Jeff Morriss <jeff.morriss.ws () gmail com>
Date: Thu, 15 Oct 2009 14:26:16 -0400
Stephen Fisher wrote:
On Oct 15, 2009, at 1:07 AM, Devlina wrote:Is there any way to display an independent variable which itself is not a part of any tvb in the protocol tree?Look in doc/README.developer for the functions that start with proto_tree_add_ other than proto_tree_add_item(). If you don't need it to be filterable, you can use proto_tree_add_text() to add any text you wish.
It's also good practice to mark the variable as "generated" (meaning: not from the TVB) using PROTO_ITEM_SET_GENERATED() ___________________________________________________________________________ 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:
- how to add a variable in protocol tree Devlina (Oct 15)
- Re: how to add a variable in protocol tree Stephen Fisher (Oct 15)
- Re: how to add a variable in protocol tree Jeff Morriss (Oct 15)
- Re: how to add a variable in protocol tree Stephen Fisher (Oct 15)