val string_of_endian : endian -> stringmodule Network : sig ... endmodule LE : sig ... endmodule BE : sig ... endmodule type HDR = sig ... enddetect buf returns a module capable of reading the pcap header fields, or None if the buffer doesn't contain pcap data.
val packets : (module HDR) -> Cstruct.t -> (Cstruct.t * Cstruct.t) Cstruct.iterpackets hdr buf returns a Cstruct.iter (sequence) containing (pcap header, pcap body) pairs.