Library
Module
Module type
Parameter
Class
Class type
PCAP encoding and encoding
0.5.2 - homepage
val string_of_endian : endian -> string
module Network : sig ... end
Type of outermost network protocol within the captured frames
module LE : sig ... end
module BE : sig ... end
module type HDR = sig ... end
Functions to read/write pcap header fields of a particular endian-ness
val detect : Cstruct.t -> (module HDR) option
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.