Kukosa, Tomas wrote:

> the last parameter of proto_tree_add_item() function /which you probably
> use to add field into the tree/ indicates if ineger field is little or
> big endian. Fot little endian (your case) it has to be TRUE.

Or use proto_tree_add_uint() and the value fetched with tvb_get_letohs().

> You should use e.g. FT_BYTES for your data field, it has variable
> length.

...using the length fetched with tvb_get_letohs().
_______________________________________________
Wireshark-dev mailing list
[email protected]
http://www.wireshark.org/mailman/listinfo/wireshark-dev

Reply via email to