Skip to main content

Module pcap

Module pcap 

Source
Expand description

PCAP file I/O for reading and writing packet captures.

Provides rdpcap for reading all packets from a file, PcapIterator for streaming large captures, and wrpcap for writing.

Re-exports§

pub use reader::PcapIterator;
pub use reader::rdpcap;
pub use writer::wrpcap;
pub use writer::wrpcap_packets;

Modules§

reader
PCAP file reader with streaming support.
writer
PCAP file writer.

Structs§

CapturedPacket
A captured packet with associated PCAP metadata.
LinkType
PCAP link-layer type.
PcapMetadata
Metadata from a PCAP packet record.