ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] Statistics UI for proprietary plugin

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Mon, 12 Feb 2007 16:34:48 -0800

On Feb 12, 2007, at 11:59 AM, Filonenko Alexander-AAF013 wrote:

Looking for an advice on how to add UI to a dissector plugin for proprietary protocol .

Dissectors themselves can't have UI, but..

Ideally, if the plugin is present then the "Statistics" menu would have another menu item to open the UI.

...that'd be implemented via a tap, which is a separate piece of code from a dissector, although the dissector does queue up work for a tap.

Are there any suggestions/existing examples of such plugins?

See, for example, the epan/dissectors/packet-afp.c dissector, the gtk/ afp_stat.c tap (for providing GUI statistics for AFP in Wireshark), and the tap-afpstat.c tap (for providing command-line statistics for AFP in TShark).

Dissectors and taps can both be plugins. See, for example, plugins/ stats_tree for a plugin tap.