Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/digineo/go-dhclient

Golang DHCPv4 client library
https://github.com/digineo/go-dhclient

Last synced: 6 days ago
JSON representation

Golang DHCPv4 client library

Awesome Lists containing this project

README

        

go-dhclient
===========

[![Build](https://github.com/digineo/go-dhclient/actions/workflows/go.yml/badge.svg)](https://github.com/digineo/go-dhclient/actions/workflows/go.yml)
[![Codecov](http://codecov.io/github/digineo/go-dhclient/coverage.svg?branch=master)](http://codecov.io/github/digineo/go-dhclient?branch=master)
[![Go Report Card](https://goreportcard.com/badge/github.com/digineo/go-dhclient)](https://goreportcard.com/report/github.com/digineo/go-dhclient)

`go-dhclient` is a DHCPv4 client library written in Go.
It uses raw sockets and binds them to a specific interface.
Callback functions are triggered on binding or expiration of a lease.

See [main.go](cmd/dhclient/main.go) for example code.

## Dependencies

* [github.com/google/gopacket](https://github.com/google/gopacket) for serializing/unserializing of DHCP packets
* [github.com/mdlayher/packet](https://github.com/mdlayher/packet) for raw sockets