filter (optional) a filter that when matches the tap.packet function gets called (use nil to
be called for every packet)
10.4.4.1.1.2. Returns
The newly created Listener listener object
10.4.4.1.1.3. Errors
• tap registration error
10.4.4.1.2. listener:remove()
Removes a tap listener
10.4.4.1.3. listener.packet
A function that will be called once every packet matches the Listener listener filter. function
tap.packet(pinfo,tvb,userdata) ... end
10.4.4.1.4. listener.draw
A function that will be called once every few seconds to redraw the gui objects in tshark this funtion
is called oly at the very end of the capture file. function tap.draw(userdata) ... end
10.4.4.1.5. listener.reset
A function that will be called at the end of the capture run. function tap.reset(userdata) ... end
10.4.5. Obtaining packet information
10.4.5.1. Address
Represents an address
10.4.5.1.1. Address.ip(hostname)
Creates an Address Object representing an IP address.
10.4.5.1.1.1. Arguments
hostname The address or name of the IP host.
10.4.5.1.1.2. Returns
the Address object
10.4.5.1.2. address:__tostring()
10.4.5.1.2.1. Returns
The string representing the address.
10.4.5.1.3. address:__eq()
compares two Addresses
Lua Support in Wireshark
206
Kommentare zu diesen Handbüchern