It is possible to add a context (right-click) menu item with Lua.
https://ask.wireshark.org/question/37438/how-to-auto-select-tcp-conversations-the-old-way/

(https://gitlab.com/wireshark/wireshark/-/merge_requests/1500   WSLUA: Add
new lua function register_packet_menu())

There are examples of calling a program with os.execute in
https://wiki.wireshark.org/Lua/Examples

There is support for clicking a field in C dissectors (proto_item_set_url()
-
https://gitlab.com/wireshark/wireshark/-/blob/master/doc/README.dissector#L2205
)
but it just copies the string to the clipboard - does not open a browser as
indicated in the README.


On Fri, Jan 2, 2026 at 10:32 AM Karlo Miličević <[email protected]> wrote:

> Hello,
>
> I have a custom dissector written in Lua and I would like to add
> hyperlinks to my fields.
> Is this something that is supported?
> I would love to be able to make dissection fields be buttons and run
> arbitrary Lua code on click.
>
> I have source code locations as fields as strings and want to be able
> to click on a them and have that open up in an editor. For example:
> /usr/src/sys/net/if.c:4784: if_dequeue(vtnet0)
>
> I don't see anything in the Lua API that would allow me to do that.
>
> Best regards,
> Karlo
> _______________________________________________
> Wireshark-users mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
>
_______________________________________________
Wireshark-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to