Crate legacy_pcap_file

Source

Structs§

PcapFileWriter
A convenience wrapper around PcapWriter for buffered files on disk. Keeps a file length and the packet count property.
PcapHeader
Pcap file global header.
PcapPacket
Pcap packet with its header and data.
PcapReader
A reader of a Pcap file. Can target any std::io::Read implementor.
PcapWriter
A writer of a Pcap file. Can target any std::io::Write implementor.

Enums§

DataLink
Data link type.
Endianness
Endianness of the pcap.
PcapError
Enumeration of all the possible errors that can occur when parsing/writing pcap data.
TsResolution
Timestamp resolution of the pcap headers.

Traits§

ReadEndian
A trait that encapsulates reading the types (u32, i32, u16) in an endian specific way. Implemented by BigEndianReader and LittleEndianReader.