proto_tree_add_uint(tree, hf_id,tvb,offset,4,(tvb_get_ntoh24( tvb,offset & 0xFFFFF000))); This is the function i gave for dissecting 24 bits in my dissector code.But it not giving the correct result. asked 08 Apr '15, 06:06 lucky15 edited 08 Apr '15, 06:21 |
One Answer:
Wrong. Use proto_tree_add_item() and setup your hf entry using FT_UINT24 or FT_INT24. answered 08 Apr '15, 06:29 Jaap ♦ |
thanks, it worked.
If an answer has solved your issue, please accept the answer for the benefit of other users by clicking the checkmark icon next to the answer. Please read the FAQ for more information.