tcpip.ipv4
Ipv4_packet.Unmarshal
tcpip
tcpip.checksum
tcpip.icmpv4
tcpip.icmpv4-socket
tcpip.ipv6
tcpip.stack-direct
tcpip.stack-socket
tcpip.tcp
tcpip.tcp_socket_options
tcpip.tcpv4v6-socket
tcpip.udp
tcpip.udpv4v6-socket
type error = string
val int_to_protocol : int -> protocol option
val of_cstruct : Cstruct.t -> (t * Cstruct.t, error) result
val header_of_cstruct : Cstruct.t -> (t * int, error) result
header_of_cstruct buf attempts to return t, offset where offset is the first byte of the payload in buf.
header_of_cstruct buf
t, offset
offset
buf
val verify_transport_checksum : proto:[ `TCP | `UDP ] -> ipv4_header:t -> transport_packet:Cstruct.t -> bool