{"id":13612931,"url":"https://github.com/insomniacslk/dhcp","last_synced_at":"2025-05-12T15:32:57.745Z","repository":{"id":29236762,"uuid":"112529472","full_name":"insomniacslk/dhcp","owner":"insomniacslk","description":"DHCPv6 and DHCPv4 packet library, client and server written in Go","archived":false,"fork":false,"pushed_at":"2025-04-17T08:01:02.000Z","size":2620,"stargazers_count":755,"open_issues_count":33,"forks_count":175,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-04-23T17:18:56.476Z","etag":null,"topics":["dhcp","dhcp-client","dhcp-server","dhcpd","dhcpd-server","dhcpv4","dhcpv6","dhcpv6-packet","dhcpv6-server","go","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/insomniacslk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2017-11-29T21:24:15.000Z","updated_at":"2025-04-21T02:04:31.000Z","dependencies_parsed_at":"2023-10-13T00:01:54.207Z","dependency_job_id":"6574658b-dd3b-4bc7-a37a-acb719627739","html_url":"https://github.com/insomniacslk/dhcp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insomniacslk%2Fdhcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insomniacslk%2Fdhcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insomniacslk%2Fdhcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insomniacslk%2Fdhcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/insomniacslk","download_url":"https://codeload.github.com/insomniacslk/dhcp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253765844,"owners_count":21960804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","dhcp-client","dhcp-server","dhcpd","dhcpd-server","dhcpv4","dhcpv6","dhcpv6-packet","dhcpv6-server","go","golang"],"created_at":"2024-08-01T20:00:36.725Z","updated_at":"2025-05-12T15:32:57.610Z","avatar_url":"https://github.com/insomniacslk.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# dhcp\n[![Build Status](https://img.shields.io/github/actions/workflow/status/insomniacslk/dhcp/tests.yml?branch=master)](https://github.com/insomniacslk/dhcp/actions?query=branch%3Amaster)\n[![GoDoc](https://godoc.org/github.com/insomniacslk/dhcp?status.svg)](https://godoc.org/github.com/insomniacslk/dhcp)\n[![codecov](https://codecov.io/gh/insomniacslk/dhcp/branch/master/graph/badge.svg)](https://codecov.io/gh/insomniacslk/dhcp)\n[![Go Report Card](https://goreportcard.com/badge/github.com/insomniacslk/dhcp)](https://goreportcard.com/report/github.com/insomniacslk/dhcp)\n\nDHCPv4 and DHCPv6 decoding/encoding library with client and server code, written in Go.\n\n# How to get the library\n\nThe library is split into several parts:\n* `dhcpv6`: implementation of DHCPv6 packet, client and server\n* `dhcpv4`: implementation of DHCPv4 packet, client and server\n* `netboot`: network booting wrappers on top of `dhcpv6` and `dhcpv4`\n* `iana`: several IANA constants, and helpers used by `dhcpv6` and `dhcpv4`\n* `rfc1035label`: simple implementation of RFC1035 labels, used by `dhcpv6` and\n  `dhcpv4`\n* `interfaces`, a thin layer of wrappers around network interfaces\n\nYou will probably only need `dhcpv6` and/or `dhcpv4` explicitly. The rest is\npulled in automatically if necessary.\n\n\nSo, to get `dhcpv6` and `dhcpv4` just run:\n```\ngo get -u github.com/insomniacslk/dhcp/dhcpv{4,6}\n```\n\n\n# Examples\n\nThe sections below will illustrate how to use the `dhcpv6` and `dhcpv4`\npackages.\n\n* [dhcpv6 client](examples/client6/)\n* [dhcpv6 server](examples/server6/)\n* [dhcpv6 packet crafting](examples/packetcrafting6)\n* TODO dhcpv4 client\n* TODO dhcpv4 server\n* TODO dhcpv4 packet crafting\n\n\nSee more example code at https://github.com/insomniacslk/exdhcp\n\n\n# Public projects that use it\n\n* Facebook's DHCP load balancer, `dhcplb`, https://github.com/facebookincubator/dhcplb\n* Systemboot, a LinuxBoot distribution that runs as system firmware, https://github.com/systemboot/systemboot\n* Router7, a pure-Go router implementation for fiber7 connections, https://github.com/rtr7/router7\n* Beats from ElasticSearch, https://github.com/elastic/beats\n* Bender from Pinterest, a library for load-testing, https://github.com/pinterest/bender\n* FBender from Facebook, a tool for load-testing based on Bender, https://github.com/facebookincubator/fbender\n* CoreDHCP, a fast, multithreaded, modular and extensible DHCP server, https://github.com/coredhcp/coredhcp\n* u-root, an embeddable root file system, https://github.com/u-root/u-root\n* Talos: a modern OS for Kubernetes, https://github.com/talos-systems/talos\n* Smee: the network boot service in the Tinkerbell stack, https://github.com/tinkerbell/smee\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finsomniacslk%2Fdhcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finsomniacslk%2Fdhcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finsomniacslk%2Fdhcp/lists"}