Skip to main content

wrpcap

Function wrpcap 

Source
pub fn wrpcap(path: impl AsRef<Path>, packets: &[CapturedPacket]) -> Result<()>
Expand description

Write captured packets to a PCAP file.

Preserves timestamps and original length from CapturedPacket metadata.