Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/digineo/go-dhclient
- Owner: digineo
- License: gpl-3.0
- Created: 2017-10-29T11:23:10.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2024-06-05T16:00:17.000Z (5 months ago)
- Last Synced: 2024-06-18T18:47:02.790Z (5 months ago)
- Language: Go
- Homepage:
- Size: 57.6 KB
- Stars: 26
- Watchers: 3
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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