package tcpip

  1. Overview
  2. Docs

TCP options parsing

type t =
  1. | Noop
  2. | MSS of int
    (*

    RFC793

    *)
  3. | Window_size_shift of int
    (*

    RFC1323 2.2

    *)
  4. | SACK_ok
    (*

    RFC2018

    *)
  5. | SACK of (int32 * int32) list
    (*

    RFC2018

    *)
  6. | Timestamp of int32 * int32
    (*

    RFC1323 3.2

    *)
  7. | Unknown of int * string
    (*

    RFC793

    *)
val equal : t -> t -> bool
val lenv : t list -> int
val marshal : Cstruct.t -> t list -> int
val unmarshal : Cstruct.t -> (t list, string) Stdlib.result
val pp : Stdlib.Format.formatter -> t -> unit
val pps : Stdlib.Format.formatter -> t list -> unit
OCaml

Innovation. Community. Security.