Wireshark-dev: Re: [Wireshark-dev] Problems with bitmasks and 64 bit values
From: Thomas Wiens <th.wiens@xxxxxx>
Date: Tue, 1 Nov 2016 12:18:17 +0100
On 01.11.2016 12:05, Pascal Quantin wrote:

> Why not simply select the right function based on ft type? For FT_(U)INT40
> and above use the functions I indicated earlier.

Now someone can use a value_string inside a bitmask field, even if the
type FT_UINT64 is used.
If I change it so you have to use always val64_string with FT_UINT64
(even if the value which is bitmasked has only 16 bits for example),
then it may be that some of the existing dissectors will fail. Or can
you go with a value_string into the functions for val64_string?

For value strings checking the flag BASE_VAL64_STRING is possible, but
there is also the format function, which also has to be a 64 bit function.

-- 
Thomas