lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]




On 5 Jun 2019, at 01:36, Jerry White <jerrywhite518@gmail.com> wrote:

HI all,

I'm a beginner at lua/wireshark and need some help. I've written a script that reads a packet file, creates a new protocol, and writes some packet info to a log file. It is populating the Wireshark tree correctly, but for some reason it is creating three entries for the same packet in the log file, iterating through the file three times. Why does it do this?

Script below:
Thanks in advance for any help.
Jerry
——————————————————————————————————————————

No Wireshark expert, but your code looks to be procedural (top to bottom). So the only thing imo that would cause it to log 3 times, would be that Wireshark calls this code 3 times. So this doesn’t look like a Lua problem to me.

But to figure out why that is, you probably have to check Wireshark docs/community.

Hth
Thijs