A Listener
is called once for every packet that matches a certain filter or has a certain tap.
It can read the tree, the packet’s Tvb
buffer as well as the tapped data, but it cannot add elements to the tree.
Creates a new Listener
tap object.
Listener.list()
for a way to print valid listener names.
tap.packet
function will be called for each matching packet.
The default is nil
, which matches every packet.
Example: "m2tp".
false
.
Note: This impacts performance.
The newly created Listener listener object
Gets a Lua array table of all registered Listener
tap names.
Note: This is an expensive operation, and should only be used for troubleshooting. ===== Example
-- Print a list of tap listeners to stdout. for _,tap_name in pairs(Listener.list()) do print(tap_name) end
The array table of registered tap names
Mode: Assign only.
A function that will be called once every packet matches the
Listener
listener filter.
When later called by Wireshark, the packet
function will be given:
Pinfo
object
Tvb
object
tapinfo
table
function tap.packet(pinfo,tvb,tapinfo) ... end
Note | |
---|---|
See epan/wslua/taps for |
Mode: Assign only.
A function that will be called once every few seconds to redraw the GUI objects; in TShark this function is called only at the very end of the capture file.
When later called by Wireshark, the draw
function will not be given any arguments.
function tap.draw() ... end