Crate legacy_pcap_file

source ·

Structs

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

Enums

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

Traits

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