package tcpip

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

Install

Dune Dependency

Authors

Maintainers

Sources

tcpip-7.1.2.tbz
sha256=96b6aeafa35f143f7275d1becb6d639472adf3680b8180416de765b6581c466d
sha512=3f873c986de5c58df72db2953c6b2a6319963dbbbd0781b55c2878fd1eaa081ebb7cecbee595db7cb3680a6f438904f98cb69ca17e70c7a6d2d1f61277e929bd

doc/src/tcpip.ipv4/ipv4_common.ml.html

Source file ipv4_common.ml

1
2
3
4
5
6
let set_checksum buf =
  let open Ipv4_wire in
  (* Set the mutable values in the ipv4 header *)
  set_ipv4_csum buf 0;
  let checksum = Tcpip_checksum.ones_complement buf in
  set_ipv4_csum buf checksum
OCaml

Innovation. Community. Security.