Ask Your Question
0

Conversation API unavailable in Lua Scripts?

asked 2025-10-06 14:59:11 +0000

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2025-10-06 15:09:38 +0000

Chuckc gravatar image

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)

edit flag offensive delete link more

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

woodydacat gravatar imagewoodydacat ( 2025-10-06 15:14:59 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2025-10-06 14:59:11 +0000

Seen: 9 times

Last updated: 4 hours ago