{"id":15285483,"url":"https://github.com/mirage/charrua","last_synced_at":"2026-02-18T14:01:20.330Z","repository":{"id":29914289,"uuid":"33460148","full_name":"mirage/charrua","owner":"mirage","description":"A DHCP library in OCaml","archived":false,"fork":false,"pushed_at":"2026-02-12T09:16:37.000Z","size":1987,"stargazers_count":60,"open_issues_count":4,"forks_count":19,"subscribers_count":22,"default_branch":"main","last_synced_at":"2026-02-12T18:12:38.206Z","etag":null,"topics":["dhcp-library","dhcp-server","mirage","ocaml","unikernel"],"latest_commit_sha":null,"homepage":"http://mirage.github.io/charrua/","language":"OCaml","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mirage.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2015-04-06T00:32:59.000Z","updated_at":"2026-02-12T09:16:41.000Z","dependencies_parsed_at":"2024-10-14T16:01:09.161Z","dependency_job_id":null,"html_url":"https://github.com/mirage/charrua","commit_stats":{"total_commits":704,"total_committers":19,"mean_commits":37.05263157894737,"dds":"0.30681818181818177","last_synced_commit":"15f3f9ae88e55d6d19eba601bd239a8d07374762"},"previous_names":["haesbaert/charrua-core"],"tags_count":28,"template":false,"template_full_name":null,"purl":"pkg:github/mirage/charrua","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirage%2Fcharrua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirage%2Fcharrua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirage%2Fcharrua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirage%2Fcharrua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mirage","download_url":"https://codeload.github.com/mirage/charrua/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirage%2Fcharrua/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29581478,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T13:56:48.962Z","status":"ssl_error","status_checked_at":"2026-02-18T13:54:34.145Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dhcp-library","dhcp-server","mirage","ocaml","unikernel"],"created_at":"2024-09-30T15:05:27.417Z","updated_at":"2026-02-18T14:01:20.276Z","avatar_url":"https://github.com/mirage.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Charrua DHCP - a DHCP client, server and wire frame encoder and decoder\n\n[![docs](https://img.shields.io/badge/doc-online-blue.svg)](https://mirage.github.io/charrua/)\n\n[charrua](http://www.github.com/mirage/charrua) is an\n_ISC-licensed_ DHCP library implementation in OCaml.\nIt provides the following packages:\n\n- charrua: a library that handles wire traffic parsing\n- charrua-server: a DHCP server implementation\n- charrua-client: a library for handling DHCP client state and messages\n- charrua-unix: a Unix DHCP server implementation\n\n### Charrua\n\nThe name `charrua` is a reference to the, now extinct, semi-nomadic people of\nsouthern South America.\n\nCharrua consists of the single module `Dhcp_wire` responsible for parsing and\nconstructing DHCP messages,\n\nYou can browse the API for [charrua](https://www.github.com/mirage/charrua) at\nhttps://mirage.github.io/charrua/\n\n#### Features\n\n* `Dhcp_wire` provides marshalling and unmarshalling utilities for DHCP, it is the\n  base for `Dhcp_server`.\n* Logic/sequencing is agnostic of IO and platform, so it can run on Unix as a\n  process, as a Mirage unikernel or anything else.\n* All DHCP options are supported at the time of this writing.\n* Code is purely applicative.\n* It's in OCaml, so it's pretty cool.\n\n### Charrua-server\n\nThe module `Dhcp_server` supports a stripped down ISC `dhcpd.conf`, so you can\nprobably just use your old `dhcpd.conf`. It also supports manual configuration\nbuilding in OCaml.\n\n[dhcp](https://github.com/mirage/mirage-skeleton/tree/master/applications/dhcp)\nis a [MirageOS](https://mirage.io) DHCP unikernel server based on charrua,\nincluded as a part of the MirageOS unikernel example and starting-point\nrepository.\n\n### Charrua-client\n\ncharrua-client is a DHCP client powered by [charrua](https://github.com/mirage/charrua).\n\nThe base library exposes a simple state machine in `Dhcp_client`\nfor use in acquiring a DHCP lease.\n\n`charrua-client-lwt` extends `charrua-client` with a functor `Dhcp_client_lwt`,\nusing the provided modules for timing and networking logic,\nfor convenient use by a program which might wish to implement a full client.\n\n`charrua-client-mirage` exposes an additional `Dhcp_client_mirage` for direct use\nwith the [MirageOS library operating system](https://github.com/mirage/mirage).\n\n### Charrua-unix Server\n\ncharrua-unix is an _ISC-licensed_ Unix DHCP daemon based on\n[charrua](http://www.github.com/mirage/charrua).\n\n#### Features\n\n* Supports a stripped down ISC dhcpd.conf. A configuration sample can be found\n[here](https://github.com/mirage/charrua/blob/master/sample/dhcpd.conf)\n* Privilege dropping: the daemon doesn't run as root.\n* Almost purely-functional code.\n* Support for multiple interfaces/subnets.\n\nTry `charruad --help` for options.\n\nThis project became one of the [Mirage Pioneer](https://github.com/mirage/mirage-www/wiki/Pioneer-Projects)\nprojects.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirage%2Fcharrua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmirage%2Fcharrua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirage%2Fcharrua/lists"}