Wireshark-users: [Wireshark-users] Re: Dissector with hyperlinks

Date Prev · Date Next · Thread Prev · Thread Next
From: Guy Harris <gharris@xxxxxxxxx>
Date: Fri, 2 Jan 2026 19:19:25 -0800
On Jan 1, 2026, at 3:33 PM, Karlo Miličević <karlo98.m@xxxxxxxxx> wrote:

> 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.

That's... not what I'd call a hyperlink.

It's a bit more like the "frame number" field type, where clicking on the field triggers an action.

> 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.

Unfortunately, there's currently no general mechanism in Wireshark to support that.

Providing such a mechanism (binding a function pointer and data pointer - think "closure" - to a field) might be a good idea; if so, providing a way to use that mechanism from Lua would be a good idea.

You might want to propose that as an enhancement on the Wireshark issues list - https://gitlab.com/wireshark/wireshark/-/issues