package frenetic

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

Basic DNS packet type.

module Qd : sig ... end
module Rr : sig ... end
type t = {
  1. id : int16;
  2. flags : int16;
  3. questions : Qd.t list;
  4. answers : Rr.t list;
  5. authority : Rr.t list;
  6. additional : Rr.t list;
}
include Ppx_sexp_conv_lib.Sexpable.S with type t := t
val t_of_sexp : Sexplib0__.Sexp.t -> t
val sexp_of_t : t -> Sexplib0__.Sexp.t
val serialize : t -> Cstruct.t

serialize dns_pkt serializes dns_pkt into a bit sequence, suitable for placing in a UDP or TCP payload.

OCaml

Innovation. Community. Security.