Module Dns.Opcode

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 =
| Query
| IQuery
| Status
| Notify
| 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.