User Guide

Lua Support in Wireshark
162
11.5.1.2.1. Errors
Cannot operate on a closed dumper
11.5.1.3. dumper:flush()
Writes all unsaved data of a dumper to the disk.
11.5.1.4. dumper:dump(timestamp, pseudoheader, bytearray)
Dumps an arbitrary packet. Note: Dumper:dump_current() will fit best in most cases.
11.5.1.4.1. Arguments
timestamp The absolute timestamp the packet will have
pseudoheader The Pseudoheader to use.
bytearray the data to be saved
11.5.1.5. dumper:new_for_current([filetype])
Creates a capture file using the same encapsulation as the one of the cuurrent packet
11.5.1.5.1. Arguments
filetype (optional) The file type. Defaults to pcap.
11.5.1.5.2. Returns
The newly created Dumper Object
11.5.1.5.3. Errors
Cannot be used outside a tap or a dissector
11.5.1.6. dumper:dump_current()
Dumps the current packet as it is.
11.5.1.6.1. Errors
Cannot be used outside a tap or a dissector
11.5.2. PseudoHeader
A pseudoheader to be used to save captured frames.
11.5.2.1. PseudoHeader.none()
Creates a "no" pseudoheader.
11.5.2.1.1. Returns
A null pseudoheader