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
listener object.
tap.packet
function gets
called (use nil to be called for every packet).
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.
Since: 1.11.3
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 | |
---|---|
|
Mode: Assign only.
A function that will be called once every few seconds to redraw the GUI objects; in Tshark this funtion 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