This crate has functionality for reading and writing packet capture packet files in the traditional libpcap file format. There is no support for the newer pcapng file format.
Please note that there is no functionality for capturing live packets from a network interface, this library only handles reading/writing data in the pcap file format.
CapturedPacket struct contains information about a single captured packet.
The options for packet capture files.