dhcp

module
v0.0.0-...-99f0e32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2024 License: BSD-3-Clause

README

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

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

Public projects that use it

Directories

Path Synopsis
Package dhcpv4 provides encoding and decoding of DHCPv4 packets and options.
Package dhcpv4 provides encoding and decoding of DHCPv4 packets and options.
client4
Package client4 is deprecated.
Package client4 is deprecated.
nclient4
Package nclient4 is a small, minimum-functionality client for DHCPv4.
Package nclient4 is a small, minimum-functionality client for DHCPv4.
server4
Package server4 is a basic, extensible DHCPv4 server.
Package server4 is a basic, extensible DHCPv4 server.
Package dhcpv6 provides encoding and decoding of DHCPv6 messages and options.
Package dhcpv6 provides encoding and decoding of DHCPv6 messages and options.
nclient6
Package nclient6 is a minimum-functionality client for DHCPv6.
Package nclient6 is a minimum-functionality client for DHCPv6.
server6
Package server6 is a basic, extensible DHCPv6 server.
Package server6 is a basic, extensible DHCPv6 server.
examples
Package iana contains constants defined by IANA.
Package iana contains constants defined by IANA.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL