Skip to main content

wrpcap_packets

Function wrpcap_packets 

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

Write plain packets to a PCAP file (convenience function).

Timestamps are set to zero, orig_len matches each packet’s data length.