Re: [Wireshark-dev] proto_tree_add_item problem

2007-01-23 Thread Guy Harris
[EMAIL PROTECTED] wrote: > I've developed a dissector and it has one statement as : > proto_tree_add_item(proto_tree, hf_xyz_any_field, tvb, offset, 16, > FALSE); > > > This statement is not getting executed , the wireshark is giving error " > malformed packet ". > But when I'm changing

Re: [Wireshark-dev] proto_tree_add_item problem

2007-01-23 Thread David Dugoujon
Hi Vikash, You should rather write proto_tree_add_item(proto_tree,hf_xyz_any_field, tvb, offset, 1,FALSE) because the value that you want to display is a single byte (FT_UINT8). David Bored stiff? Loosen u

[Wireshark-dev] proto_tree_add_item problem

2007-01-23 Thread jaiswal.vikash
Hi , I've developed a dissector and it has one statement as : proto_tree_add_item(proto_tree, hf_xyz_any_field, tvb, offset, 16, FALSE); This statement is not getting executed , the wireshark is giving error " malformed packet ". But when I'm changing the length ( 16 ) to smaller value ,