Comment # 30
on bug 9072
from Evan Huus
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.