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.
pub fn wrpcap(path: impl AsRef<Path>, packets: &[CapturedPacket]) -> Result<()>Write captured packets to a PCAP file.
Preserves timestamps and original length from CapturedPacket metadata.