tcpip.udp
Udp_packet.Unmarshal
tcpip
tcpip.checksum
tcpip.icmpv4
tcpip.icmpv4-socket
tcpip.ipv4
tcpip.ipv6
tcpip.stack-direct
tcpip.stack-socket
tcpip.tcp
tcpip.tcp_socket_options
tcpip.tcpv4v6-socket
tcpip.udpv4v6-socket
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 .
of_cstruct buf
buf
Ok (header, payload)
payload