dhcp

DHCPv6 and DHCPv4 packet library, client and server written in Go

Github星跟踪图

dhcp

Build Status
GoDoc
codecov
Go Report Card

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 server
  • dhcpv4: implementation of DHCPv4 packet, client and server
  • netboot: network booting wrappers on top of dhcpv6 and dhcpv4
  • iana: several IANA constants, and helpers used by dhcpv6 and dhcpv4
  • rfc1035label: simple implementation of RFC1035 labels, used by dhcpv6 and
    dhcpv4
  • interfaces, 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 dhpv4 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.

See more example code at https://github.com/insomniacslk/exdhcp

Public projects that use it

主要指标

概览
名称与所有者insomniacslk/dhcp
主编程语言Go
编程语言Go (语言数: 1)
平台
许可证BSD 3-Clause "New" or "Revised" License
所有者活动
创建于2017-11-29 21:24:15
推送于2025-04-17 08:01:02
最后一次提交2025-04-17 09:01:01
发布数0
用户参与
星数766
关注者数18
派生数179
提交数868
已启用问题?
问题数106
打开的问题数21
拉请求数391
打开的拉请求数12
关闭的拉请求数51
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?