This is a static, read-only archive of Wireshark Q&A. Older questions and answers from October 2017 and earlier can be found at osqa-ask.wireshark.org.
0

Conversation API unavailable in Lua Scripts?

asked Oct 06 '25

HI Everyone,

I'm currently working on writing a dissector for a custom protocol and I"m trying to use the Conversation API. I can see the API in the documentation and GitHub history, but I can't seem to use it in my Lua script. If I do Conversation.find_with_pinfo(pinfo,true) I get this error:

.local/lib/wireshark/plugins/wgproto.lua:21: attempt to index a nil value (global 'Conversation')] [Severity level: Error] [Group: Undecoded] Lua Traceback

I also can't access the Conversation global in the Lua console. I reinstalled WireShark yesterday from the main website, as far as I can tell the Conversation API should be in it as the API was merged in 7 months ago.

Anyone know what I can do?

1 Answer

0

answered Oct 06 '25

Can you update the question with output of wireshark -v.
Are you running a current development (master) build or release candidate 4.6.0rc1 ?
(See branches including the commit here: dab146cb)

Comments

Thanks Chuckc - I now see that I have version 4.4.x which does not include that commit, I will try to build a dev build

User 94995 ( Oct 06 '25 )
cc-by-sa Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.