This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Manually obtain value string by value

0

I would like to obtain the value string for a specific value manually (to display it in the COL_INFO column) by it's value. I could manually iterate over my value string mapping, however I think there might also be an official API for this task.

asked 14 Feb '14, 21:08

athre0z's gravatar image

athre0z
16114
accept rate: 0%


One Answer:

1

There are several functions doing the dirty work for you. Look at the content of epan/value_strings.h and pick the one fitting your needs.

answered 15 Feb '14, 02:34

Pascal%20Quantin's gravatar image

Pascal Quantin
5.5k1060
accept rate: 30%