• Stars
    star
    713
  • Rank 63,511 (Top 2 %)
  • Language
    Go
  • License
    BSD 3-Clause "New...
  • Created about 7 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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

More Repositories

1

dublin-traceroute

Dublin Traceroute is a NAT-aware multipath tracerouting tool
Go
250
star
2

irc-slack

IRC-to-Slack gateway
Go
194
star
3

python-dublin-traceroute

Python bindings for Dublin Traceroute
Python
48
star
4

exdhcp

Examples for https://github.com/insomniacslk/dhcp
Go
15
star
5

nsidenumerator

Enumerate DNS servers using the NSID EDNS extension (RFC 5001)
Go
10
star
6

stabilityai

Go
7
star
7

prometheus-aranet4-exporter

Go
6
star
8

dnsparse

A library to parse and craft DNS packets
Python
6
star
9

uefi

Go
6
star
10

yubiswitch

Yubikey on/off switch for Linux
Python
4
star
11

prometheus-tapo-exporter

Prometheus exporter for TP-Link smart plugs (P100, P110)
Go
3
star
12

tapo

TP-Link Tapo library
Go
3
star
13

fmap

Parse and manipulate coreboot flashmaps
Go
3
star
14

forework

Forensic Framework - Analyze and prioritize large amounts of forensic artifacts
Python
3
star
15

osf-build

Docker image to build reproducible LinuxBoot images
Dockerfile
3
star
16

dyndns-aws

Update Route53 record with the external IP of the host
Go
2
star
17

xorpd-solutions

2
star
18

irssi-notifier

Desktop notifications with irssi and fnotify. Client in Python, server in Go
Go
2
star
19

termhook

termhook implements a simple terminal that allows attaching hooks
Go
2
star
20

fspinfo

Parse and present Intel FSP (Firmware Support Package) information
Go
2
star
21

cpus

Get or set CPU online status on Linux
Go
2
star
22

prometheus-weather-exporter

Weather exporter for Prometheus, using the Google Maps and Darksky APIs
Go
2
star
23

keyb

Tool to handle my 9-keys keyboard
Go
1
star
24

libdnet

Automatically exported from code.google.com/p/libdnet
C
1
star
25

xjson

Extended JSON marshallers and unmarshallers (like URL, Time, etc)
Go
1
star
26

sre

Go
1
star
27

dpkt

Fork of https://code.google.com/p/dpkt/
Python
1
star