package dns

  1. Overview
  2. Docs

Opcode

Each DNS packet includes the kind of query, identified by a 4bit opcode. This value is set by the originator of a query and copied into the response.

type t =
  1. | Query
  2. | IQuery
  3. | Status
  4. | Notify
  5. | Update
    (*

    The type of opcodes.

    *)
val pp : t Fmt.t

pp ppf opcode pretty-prints the opcode on ppf.

val compare : t -> t -> int

compare a b compares the opcode a with b, using the RFC-specified integer representation of each opcode.

OCaml

Innovation. Community. Security.