Wireshark-bugs: [Wireshark-bugs] [Bug 9072] Enhancement of the packet-mq dissector (WMQ 7.1-7.5)
Date: Sat, 14 Sep 2013 15:47:56 +0000

Comment # 30 on bug 9072 from
Your macros (DEF_GETFNB and other related ones) for converting an int to its
string representation are unnecessary.

If the int is just being added to the tree with proto_tree_add_item or another
similar call, you can simply add the value_string or value_string_ext table to
the field definition and Wireshark will do that work for you. If you need the
string for other purposes you can use val_to_str and similar methods defined in
epan/value_string.h. Please see the documentation in README.dissector on the
'strings' field (somewhere in section 1.5) for more information.


You are receiving this mail because:
  • You are watching all bug changes.