Skip to main content

parse_pcap

Function parse_pcap 

Source
pub fn parse_pcap(d: &[u8]) -> Result<Packets<'_>>
Expand description

Walk the packets of a classic pcap file. A truncated last record is dropped.

ยงErrors

Fails if the global header is short or the magic is not classic pcap.