package tcpip

  1. Overview
  2. Docs
type subheader =
  1. | Id_and_seq of Cstruct.uint16 * Cstruct.uint16
  2. | Pointer of Cstruct.uint8
  3. | Address of Ipaddr.V4.t
  4. | Unused
type t = {
  1. code : Cstruct.uint8;
  2. ty : Cstruct.uint8;
  3. csum : Cstruct.uint16;
  4. subheader : subheader;
  5. payload : Cstruct.t option;
}
val subheader_of_cstruct : int -> Cstruct.t -> subheader
val input : Cstruct.t -> (t, string) Result.result
OCaml

Innovation. Community. Security.