Expand description
Streaming PCAP / PCAPng reader.
Yields one PacketInfo per packet in file order, without buffering
payloads. Uses pcap-parser for file framing and etherparse for
zero-copy layer parsing.
Structs§
- Packet
Data - Parsed metadata for a single packet, together with the raw captured bytes.
- Packet
Info - Parsed metadata for a single packet.
Functions§
- count_
flows_ in_ file - Count packets per flow ID in a single streaming pass over
path. - iter_
legacy - Iterate over packets in a legacy PCAP file.
- iter_
pcapng - Iterate over packets in a PCAPng file.
- open
- Open a file, auto-detect PCAP vs PCAPng, and return a boxed packet iterator.
- open_
with_ payload - Open a file and return an iterator that yields both
PacketInfoand the raw captured bytes for each packet.