Skip to main content

Module index

Module index 

Source
Expand description

Packet index types for two-pass chronological sorting.

PacketIndex is exactly 20 bytes — a minimal record that lets the second pass seek directly to each packet without buffering payloads.

IndexStore abstracts over in-memory and on-disk storage so the first pass can switch modes transparently.

Structs§

FilePacketIndex
A PacketIndex entry annotated with the index of its source file.
PacketIndex
Minimal per-packet record built during the first pass.

Enums§

IndexStore
Storage backend for the first-pass packet index.

Functions§

read_packet_at
Seek file to offset, read the 16-byte PCAP record header to recover origlen, then read caplen bytes of packet data.
sidecar_path
Derive the .idx sidecar path by appending .idx to the input path.