IPv4 packet header codec
0

Configure Feed

Select the types of activity you want to include in your feed.

OCaml 69.6%
C 19.4%
Python 2.8%
C++ 1.7%
Roff 1.1%
Dune 1.1%
Shell 0.4%
Other 3.8%
87 1 0

Clone this repository

https://git.vm.fail/gazagnaire.org/ocaml-ip https://git.vm.fail/did:plc:yy7hjm37ozw4fphusrn3ecxt
ssh://git@git.recoil.org:2222/gazagnaire.org/ocaml-ip ssh://git@git.recoil.org:2222/did:plc:yy7hjm37ozw4fphusrn3ecxt

For self-hosted knots, clone URLs may differ based on your setup.


README.md

nox-ip#

Warning. This is a work-in-progress experimental fork of mirage-tcpip. Do not use it in production; use mirage-tcpip instead.

Encode and decode IPv4 packet headers (RFC 791) in pure OCaml: the fixed header, options, the RFC 1071 header checksum, and the pseudo-header that UDP and TCP use for their own checksums.

Installation#

Install with opam:

$ opam install nox-ip

If opam cannot find the package, it may not yet be released in the public opam-repository. Add the overlay repository, then install it:

$ opam repo add samoht https://tangled.org/gazagnaire.org/opam-overlay.git
$ opam update
$ opam install nox-ip

Credits#

Forked from mirage/mirage-tcpip, originally by Anil Madhavapeddy, Mindy Preston, and the MirageOS team, released under the ISC license. The cstruct codec has been replaced by the wire library and the C checksum by nox-crc's Crc.internet_checksum. The original copyright notices are preserved in LICENSE.md.