Ask Your Question

Revision history [back]

Lua display filter in Listener.new

I'm upgrading my wlan monitoring Lua scripts back from v2.0.0 (ping @cmaynard who helped me a lot at this time) as some display filters have changed.

Old script started with :

local wlan = Listener.new("wlan", "wlan.fcs_good == 1")

Changed to

local wlan = Listener.new("wlan", "wlan.fcs.status == 1")

Simply changing this, my callback function wlan.packet(pinfo,tvb,tapinfo) is never called.

I changed to :

local wlan = Listener.new("wlan", "radiotap.flags.badfcs == 0")

and my callback is working great directly, so it seems to be linked with this very special display filter.

Am I doing something wrong with it or it looks like a bug ?