Wireshark-dev: Re: [Wireshark-dev] how to add a variable in protocol tree
From: Jeff Morriss <jeff.morriss.ws@xxxxxxxxx>
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()