pub fn open(
path: &Path,
) -> Result<Box<dyn Iterator<Item = Result<PacketInfo, PcapError>>>, PcapError>Expand description
Open a file, auto-detect PCAP vs PCAPng, and return a boxed packet iterator.
Detection is based on the first 4 bytes (magic number).