PcapPCAP encoding and encoding
v0.6.0 - homepage
val string_of_endian : endian -> stringmodule Network : sig ... endType of outermost network protocol within the captured frames
module LE : sig ... endmodule BE : sig ... endmodule type HDR = sig ... endFunctions to read/write pcap header fields of a particular endian-ness
val detect : Cstruct.t -> (module HDR) optiondetect 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.