Skip to main content

wrpcapng_packets

Function wrpcapng_packets 

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

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

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