val string_of_endian : endian -> string
module Network : sig ... end
module LE : sig ... end
module BE : sig ... end
module type HDR = sig ... end
detect 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.iter
packets hdr buf
returns a Cstruct.iter (sequence) containing (pcap header, pcap body) pairs.