ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] Controlling Tshark output format

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Mon, 12 Feb 2007 09:34:32 -0800
Douglas Pratley wrote:

b) I didn't want to restrict the possible names of fields. So far, all
the ones in Wireshark are "sensible" strings, but I can't find any code
that restricts them, so they might contain commas, spaces, etc.

See the loop in proto_register_field_init() which scans hfinfo->abbrev to make sure it only contains alphanumerics, "-", "_", and ".".