Ocaml-ipaddr is a library for manipulation of IP and MAC address
representations, supporting both IPv4 and IPv6.

Homepage:
https://github.com/mirage/ocaml-ipaddr/
