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

Date Prev · Date Next · Thread Prev · Thread Next
From: Bernhard Dick <bernhard@xxxxxxxx>
Date: Fri, 2 Dec 2022 19:56:53 +0100
Hi,

Am 30.11.2022 um 19:13 schrieb Maynard, Christopher via Wireshark-dev:
Have you looked into using proto_tree_add_string()
The following comment on this function made me assume there should be something for custom output formatting at another place: "String must be valid UTF-8 but do not format the string for display in any way, for example by escaping unprintable characters, because this is packet data, not a display string. Formatting is a concern of the UI. Doing that here would change the meaning of the captured data and make display filtering very unintuitive for speacial characters."

and friends, such as proto_tree_add_string_format() and proto_tree_add_string_format_value()?
I'm now using proto_tree_add_string_format_value, thanks!

  Best regards
    Bernhard
- Chris

Attachment: OpenPGP_0xD61E22D000471E9B.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature