Page
Library
Module
Module type
Parameter
Class
Class type
Source
A library for manipulation of IP and MAC address representations.
Features:
Ipaddr.V4 and Ipaddr.V4.Prefix modules are Map.OrderedTypeIpaddr.V6 and Ipaddr.V6.Prefix modules are Map.OrderedTypeIpaddr and Ipaddr.Prefix modules are Map.OrderedTypeIpaddr_unix in findlib subpackage ipaddr.unix provides compatibility with the standard library Unix moduleIpaddr_top in findlib subpackage ipaddr.top provides top-level pretty printersMacaddr is a Map.OrderedTypeIpaddr_sexp and Macaddr_sexp libraries.There are the following opam packages included:
ipaddr: the Ipaddr and associated modulesipaddr-sexpipaddr-cstructmacaddr: the Macaddr and associated modules.macaddr-sexpmacaddr-cstructThere are the following ocamlfind libraries included as part of this repository, included as part of the respective opam packages.
ipaddr: The Ipaddr module for IPv4/6 manipulation.ipaddr.top: Toplevel printers for Ipaddr.ipaddr-cstruct: The Ipaddr_cstruct modulemacaddr: The Macaddr module for MAC address manipulation.macaddr.top: Toplevel printers for Macaddr.macaddr-cstruct: The Macaddr_cstruct moduleipaddr-sexp: S-expression converters for Ipaddr.macaddr-sexp: S-expression converters for Macaddr.The packages are released to the opam-repository. An opam install ipaddr (or any other above mentioned package) will install it. If you want to install the latest development commit, opam pin add ipaddr --dev will do this.
A local build, after a git clone can be done with dune build, a dune runtest compiles and executes the testsuite. If dependencies are missing, opam install (-t) --deps-only . in the cloned directory will install them.
The auto-formatter ocamlformat is used, please execute dune build @fmt --auto-promote before submitting a pull request.
mirageos tag.