tcpip

OCaml TCP/IP networking stack, used in MirageOS
Library tcpip_ipv4
type error = string
val int_to_protocol : int -> protocol option
val of_cstruct : Cstruct.t -> ( t * Cstruct.t, error ) result
val verify_transport_checksum : proto:[ `TCP | `UDP ] -> ipv4_header:t -> transport_packet:Cstruct.t -> bool