Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: [Wireshark-dev] proto_tree_add_item_ret_uint() returns unmasked value - should i

From: Anders Broman <anders.broman@xxxxxxxxxxxx>
Date: Mon, 18 Jul 2016 12:45:37 +0000

Hi,

proto_tree_add_item_ret_uint() returns the value corresponding to the length of the value fetched e.g uint8, uint16 etc but does not take the mask of

the hf entry into consideration which lead to a bug in an proprietary dissector I have.

Should it in fact return the value displayed in the corresponding hf variable e.g take the mask into consideration?

Regards

Anders