tcpip

OCaml TCP/IP networking stack, used in MirageOS
Library tcpip_udpv4
type error = string
val of_cstruct : Cstruct.t -> ( t * Cstruct.t, error ) result

of_cstruct buf attempts to interpret buf as a UDP header. If successful, it returns Ok (header, payload), although payload may be an empty Cstruct.t .