Module Udp.Pdu

module Pdu: sig .. end

type t = {
   src_port : Udp.Port.t;
   dst_port : Udp.Port.t;
   payload : Tools.Payload.t;
}
An unpacked UDP datagram. Notice the absence of the checksum, which will be set to 0 by Udp.Pdu.pack, and filled in by Ip.Pdu.pack, since it's computed over some IP fields.
val make : ?src_port:Udp.Port.t ->
?dst_port:Udp.Port.t -> Tools.Payload.outer_t -> t
val random : unit -> t
val pack : t -> Bitstring.bitstring
val unpack : string * int * int -> t option