package tcpip

  1. Overview
  2. Docs
OCaml TCP/IP networking stack, used in MirageOS

Install

dune-project
 Dependency

Authors

Maintainers

Sources

tcpip-8.2.0.tbz
sha256=916e688aba897676c444db8129f4963ad739f8d1be631d9e009c6228b4b7d6ed
sha512=a8f5fa8f7e96758075c93211132839950477b756fba490207a7d630f2766757bbb44bbdd02e2b1f2b4a7d83d4d8b10d34cb03903bbd516e7d7c1a9a987eb1915

doc/tcpip.icmpv4/Icmpv4_packet/Marshal/index.html

Module Icmpv4_packet.MarshalSource

Sourcetype error = string
Sourceval into_cstruct : t -> Cstruct.t -> payload:Cstruct.t -> (unit, error) result

into_cstruct t buf ~payload generates an ICMPv4 header from t and writes it into buf at offset 0. payload is used to calculate the ICMPv4 header checksum, but is not included in the generated buffer. into_cstruct may fail if the buffer is of insufficient size.

Sourceval make_cstruct : t -> payload:Cstruct.t -> Cstruct.t

make_cstruct t ~payload allocates, fills, and returns a Cstruct.t with the header information from t. The payload is used to calculate the ICMPv4 header checksum, but is not included in the generated buffer. make_cstruct allocates 8 bytes for the ICMPv4 header.

OCaml

Innovation. Community. Security.