RepositoryGo
insomniacslk/dhcp
DHCPv6 and DHCPv4 packet library, client and server written in Go
853stars
209forks
28issues
6views
Featured achievements
The project's latest awards
1
TINIX TRENDING·Topic: dhcpd
#1 Repository of the week
11/23/2026
1
TINIX TRENDING·Topic: dhcpv6-server
#1 Repository of the week
11/23/2026
1
TINIX TRENDING·Topic: dhcpv4
#1 Repository of the week
11/23/2026
dhcp
DHCPv4 and DHCPv6 decoding/encoding library with client and server code, written in Go.
How to get the library
The library is split into several parts:
dhcpv6: implementation of DHCPv6 packet, client and serverdhcpv4: implementation of DHCPv4 packet, client and servernetboot: network booting wrappers on top ofdhcpv6anddhcpv4iana: several IANA constants, and helpers used bydhcpv6anddhcpv4rfc1035label: simple implementation of RFC1035 labels, used bydhcpv6anddhcpv4interfaces, a thin layer of wrappers around network interfaces
You will probably only need dhcpv6 and/or dhcpv4 explicitly. The rest is
pulled in automatically if necessary.
So, to get dhcpv6 and dhcpv4 just run:
go get -u github.com/insomniacslk/dhcp/dhcpv{4,6}
Examples
The sections below will illustrate how to use the dhcpv6 and dhcpv4
packages.
- dhcpv6 client
- dhcpv6 server
- dhcpv6 packet crafting
- TODO dhcpv4 client
- TODO dhcpv4 server
- TODO dhcpv4 packet crafting
See more example code at https://github.com/insomniacslk/exdhcp
Public projects that use it
- Facebook's DHCP load balancer,
dhcplb, https://github.com/facebookincubator/dhcplb - Systemboot, a LinuxBoot distribution that runs as system firmware, https://github.com/systemboot/systemboot
- Router7, a pure-Go router implementation for fiber7 connections, https://github.com/rtr7/router7
- Beats from ElasticSearch, https://github.com/elastic/beats
- Bender from Pinterest, a library for load-testing, https://github.com/pinterest/bender
- FBender from Facebook, a tool for load-testing based on Bender, https://github.com/facebookincubator/fbender
- CoreDHCP, a fast, multithreaded, modular and extensible DHCP server, https://github.com/coredhcp/coredhcp
- u-root, an embeddable root file system, https://github.com/u-root/u-root
- Talos: a modern OS for Kubernetes, https://github.com/talos-systems/talos
- Smee: the network boot service in the Tinkerbell stack, https://github.com/tinkerbell/smee
Similar Projects
Discover other similar projects and AI models.
1.1k
Apr 13, 2026
774
Dec 2, 2026
119
Nov 10, 2026
118
Nov 16, 2026
931
Nov 30, 2026
82
Mar 4, 2025
197.2k
Dec 2, 2026
RepositoryGo
ollama/ollamaGet up and running with Inkling, Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
188.9k
Dec 2, 2026
62.3k
Nov 29, 2026