On Jan 1, 2026, at 3:33 PM, Karlo Miličević <[email protected]> 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
_______________________________________________
Wireshark-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to