Skip to main content

wrpcapng

Function wrpcapng 

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

Write captured packets to a PcapNG file.

Writes SHB + IDB (Ethernet) header, then each packet as an Enhanced Packet Block.