Wireshark mailing list archives
Re: VALS() with populated "unknown string"
From: Jakub Zawadzki <darkjames-ws () darkjames pl>
Date: Mon, 16 Sep 2013 19:43:36 +0200
On Mon, Sep 16, 2013 at 06:47:50AM -0400, mmann78 () netscape net wrote:
Is there a way to provide the "unknown string" for the val_to_str call made in hf_ registration (ie some derivation of the VALS() macro)? There are many proto_tree_add_[u]int_format[_value] calls that are done strictly to provided an "unknown string" for the val_to_str that is different than the default of "Unknown". If there was such a way, many of these calls could be converted to proto_tree_add_item or proto_tree_add_[u]int.
If there isn't such a thing, how easy/hard would it be to implement?
I'd suggest tweaking extended value_string API for it. We'd need first to convert value_string to extended one, but I think it's better than adding new field to header_field_info structure. Regards, Jakub. ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- VALS() with populated "unknown string" mmann78 (Sep 16)
- Re: VALS() with populated "unknown string" Jakub Zawadzki (Sep 16)
- <Possible follow-ups>
- VALS() with populated "unknown string" mmann78 (Sep 16)
- Re: VALS() with populated "unknown string" Jeff Morriss (Sep 16)
- Re: VALS() with populated "unknown string" mmann78 (Sep 16)
- Re: VALS() with populated "unknown string" Alexis La Goutte (Sep 17)