package charrua-core

  1. Overview
  2. Docs
Charrua DHCP core library.


Dune Dependency






charrua-core is an ISC-licensed DHCP library implementation in ocaml.

It provides basically two modules, a Dhcp responsible for parsing and constructing DHCP messages and a Dhcp_server module used for constructing DHCP servers.

charrua-unix is a Unix DHCP server based on charrua-core.

mirage is a Mirage DHCP unikernel server based on charrua-core.

You can browse the API for [charrua-core] at


  • Dhcp_server supports a stripped down ISC dhcpd.conf, so you can probably just use your old dhcpd.conf, it also supports manual configuration building in ocaml.
  • Logic/sequencing is agnostic of IO and platform, so it can run on Unix as a process, as a Mirage unikernel or anything else.
  • Dhcp_wire provides marshalling and unmarshalling utilities for DHCP, it is the base for Dhcp_server.
  • All DHCP options are supported at the time of this writing.
  • Code is purely applicative.
  • It's in ocaml, so it's pretty cool.

The name charrua is a reference to the, now extinct, semi-nomadic people of southern South America.

This project became one of the [Mirage Pioneer] ( projects.

Published: 23 Feb 2017

Dependencies (13)

  1. rresult
  2. result
  3. tcpip >= "3.0.0" & < "3.1.0"
  4. ipaddr >= "2.5.0" & < "3.0.0"
  5. menhir
  6. sexplib
  7. cstruct >= "1.9.0" & < "3.0.0"
  8. ppx_type_conv build
  9. ppx_sexp_conv
  10. ppx_cstruct
  11. ppx_deriving
  12. ocamlfind build
  13. ocaml >= "4.01"

Dev Dependencies


Used by (3)

  1. charrua-client < "0.9"
  2. charrua-unix = "0.4"
  3. vpnkit < "0.1.1"