charrua-core

AuthorChristiano F. Haesbaert <haesbaert@haesbaert.org>
LicenseISC
Homepagehttps://github.com/mirage/charrua-core
Issue Trackerhttps://github.com/mirage/charrua-core/issues
MaintainerChristiano F. Haesbaert <haesbaert@haesbaert.org>
Dependencies
&cstruct>= 3.0.1
cstruct-unix
io-page
ipaddr>= 2.5.0
jbuilder>= 1.0+beta7
menhir
ppx_cstruct
ppx_sexp_conv
rresult
sexplib
tcpip>= 3.1.0&3.2.0
Availableocaml-version >= "4.03" & opam-version >= "1.2"
PublishedJun 12, 2017
Source [http] https://github.com/mirage/charrua-core/releases/download/v0.8/charrua-core-0.8.tbz
cefcd421a63a0d4dc255a0bf22d20b04
StatisticsInstalled 3 times last month.
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/charrua-core/charrua-core.0.8/opam

DHCP core library - a DHCP server and wire frame encoder and decoder

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

docs Build Status

It provides basically two modules, a Dhcp_wire 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 http://mirage.github.io/charrua-core/api

Features

  • 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.

Necessary for
charrua-unix
&>= 0.5
0.9
vpnkit
0.1.1