Wireshark mailing list archives

Re: Displaying a variable in a Dissector Protocol Tree


From: Bill Meier <wmeier () newsguy com>
Date: Mon, 14 Jun 2010 17:54:29 -0400

Mark Eyman wrote:
I'd like to add a value that was fetched into a variable to the protocol
tree. The README.developer tells that the proto_tree_add_int()routine
suppose to do that. Hence if I look on the definition in the epan\proto.h,
it requires all the parameters related to the tvb, but no references to the
variable itself.

Can somebody tell how to do that correctly?
Thanks




 From proto.h (reformatted):

extern proto_item *
proto_tree_add_int(proto_tree *tree, int hfindex, tvbuff_t *tvb,
         gint start, gint length, gint32 value);


'value' sounds like what you're seeking ...   :)


___________________________________________________________________________
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: