Wireshark-dev: Re: [Wireshark-dev] Custom display formatting for FT_STRING

Date Prev · Date Next · Thread Prev · Thread Next
From: "Maynard, Christopher" <Christopher.Maynard@xxxxxxx>
Date: Wed, 30 Nov 2022 18:13:07 +0000
Have you looked into using proto_tree_add_string() and friends, such as proto_tree_add_string_format() and proto_tree_add_string_format_value()?
- Chris

> -----Original Message-----
> From: Wireshark-dev <wireshark-dev-bounces@xxxxxxxxxxxxx> On Behalf
> Of Bernhard Dick
> Sent: Thursday, November 24, 2022 11:03 AM
> To: wireshark-dev@xxxxxxxxxxxxx
> Subject: [Wireshark-dev] Custom display formatting for FT_STRING
>
> CAUTION: This email originated outside of IGT. Do not click links or open
> attachments unless you recognize the sender and know the content is
> safe.
>
>
>
> Hi,
> I'm searching for a way to do custom formatting of the output of
> FT_STRING header fields in dissectors, to be able to show informative
> abbreviations for Control code values as they represent pressed key
> informations in that case.
> For integer values there exist the different variants for custom_fmt_func_t,
> is there any equivalent or can you give me some hints how to achieve this.
>
>    Best regards
>      Bernhard











CONFIDENTIALITY NOTICE: This message is the property of International Game Technology PLC and/or its subsidiaries and may contain proprietary, confidential or trade secret information. This message is intended solely for the use of the addressee. If you are not the intended recipient and have received this message in error, please delete this message from your system. Any unauthorized reading, distribution, copying, or other use of this message or its attachments is strictly prohibited.