pub fn wrpcapng( path: impl AsRef<Path>, packets: &[CapturedPacket], ) -> Result<()>
Write captured packets to a PcapNG file.
Writes SHB + IDB (Ethernet) header, then each packet as an Enhanced Packet Block.