package pcap-format

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Functions to read/write pcap header fields of a particular endian-ness

val endian : endian

The detected endian-ness of the headers

val get_pcap_header_magic_number : Cstruct.t -> int32
val get_pcap_header_version_major : Cstruct.t -> int
val get_pcap_header_version_minor : Cstruct.t -> int
val get_pcap_header_thiszone : Cstruct.t -> int32
val get_pcap_header_sigfigs : Cstruct.t -> int32
val get_pcap_header_snaplen : Cstruct.t -> int32
val get_pcap_header_network : Cstruct.t -> int32
val set_pcap_header_magic_number : Cstruct.t -> int32 -> unit
val set_pcap_header_version_major : Cstruct.t -> int -> unit
val set_pcap_header_version_minor : Cstruct.t -> int -> unit
val set_pcap_header_thiszone : Cstruct.t -> int32 -> unit
val set_pcap_header_sigfigs : Cstruct.t -> int32 -> unit
val set_pcap_header_snaplen : Cstruct.t -> int32 -> unit
val set_pcap_header_network : Cstruct.t -> int32 -> unit
val get_pcap_packet_ts_sec : Cstruct.t -> int32
val get_pcap_packet_ts_usec : Cstruct.t -> int32
val get_pcap_packet_incl_len : Cstruct.t -> int32
val get_pcap_packet_orig_len : Cstruct.t -> int32
val set_pcap_packet_ts_sec : Cstruct.t -> int32 -> unit
val set_pcap_packet_ts_usec : Cstruct.t -> int32 -> unit
val set_pcap_packet_incl_len : Cstruct.t -> int32 -> unit
val set_pcap_packet_orig_len : Cstruct.t -> int32 -> unit
OCaml

Innovation. Community. Security.