register packet menu from plugin
From a lua plugin is it possible to register new menu items via register_menu() and register new packet menu items via register_packet_menu().
Registering a menu item has options from C code as well such as - using register_stat_tap_table_ui() for a Simple Statistics Dialog with a table inside - implementing a plugin GUI menu (README.plugins)
However, it seems it is not possible to use register_stat_tap_table_ui() for a packet menu item (right click on a packet and add a menu item to that window).
I would like to add a packet menu item and not to the bar menu on top, and I would like that packet menu item to open a Dialog where I provide result of packet analysis.
Is this supported?
Thank you.
What is an example of this in the base Wireshark?
For an example and idea representation, let's consider a TLS Server Hello packet (as follows).
Now, I want to reuse this information and in a Dialog Box I want to reformat/filter some of that information:
"
This is a Handshake Protocol: Server Hello packet.
Cipher Suite: TLS_RSA_WITH_AES_256_GCM_SHA384 (0x009d)
"
Copied from Wireshark:
` Transport Layer Security
(more)"is it" or "it is" ?
Would WSDG: 10.4. Example: Listener written in Lua work if registered with
register_packet_menu()
?yes, in lua "it is", there is a function call
register_packet_menu()
.However, I am not writing a lua plugin, I am considering a wiretap in C code.
OK. Takes me awhile to digest the original question. :-)
All of the existing calls to register_stat_tap_table_ui() are in dissectors.
You would like to call it from a "C" plugin. Correct?
From doc/README.plugins it would seem not possible (says to see epan/plugin_if.h).