Wireshark-dev: Re: [Wireshark-dev] How to catch unlisted values of value_string?
From: Jeff Morriss <[email protected]>
Date: Fri, 17 Dec 2010 15:39:41 -0500
eymanm wrote:
In many cases, when a value_string array is defined, there are values that are left unlisted. In some cases, way too many to include in the list. Is there a way to make all of those be displayed as let's say, "Unlisted_Value"?
Typically you'd do that with val_to_str():

val_to_str(val, my_val_string, "Unknown: %d"))

(The %d is optional, but it allows the user to see the actual value of 'val'.)