Re: [Wireshark-dev] Displaying a variable in a Dissector Protocol Tree

2010-06-15 Thread Guy Harris
On Jun 15, 2010, at 1:31 PM, eymanm wrote: > proto_tree_add_int(wca_tree, hf_wca_label_2_number, tvb, offset, 4, 26); > > When I run it, it troughs an exception: proto.c:2926: failed assertion > "DISSECTOR_ASSERT_NOT_REACHED" > > What's wrong? What's probably wrong is that hf_wca_label_2_numb

Re: [Wireshark-dev] Displaying a variable in a Dissector Protocol Tree

2010-06-15 Thread eymanm
Now I'm trying to make it to work. I start with a perfectly working statement: proto_tree_add_item(wca_tree, hf_wca_label_2_number, tvb, offset, 4, FALSE); and transform it to: proto_tree_add_int(wca_tree, hf_wca_label_2_number, tvb, offset, 4, 26); When I run it, it troughs an exception: proto

Re: [Wireshark-dev] Displaying a variable in a Dissector Protocol Tree

2010-06-14 Thread Bill Meier
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

Re: [Wireshark-dev] Displaying a variable in a Dissector Protocol Tree

2010-06-14 Thread Guy Harris
On Jun 14, 2010, at 2:45 PM, 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 p

[Wireshark-dev] Displaying a variable in a Dissector Protocol Tree

2010-06-14 Thread Mark Eyman
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 varia