dhcp4client
dhcp4client copied to clipboard
DHCP Client
The current default branch of V2 broke e.g. github.com/gokrazy/gokrazy/cmd/dhcp: ``` % go get -u github.com/gokrazy/gokrazy/cmd/dhcp # github.com/gokrazy/gokrazy/cmd/dhcp /tmp/gp/src/github.com/gokrazy/gokrazy/cmd/dhcp/dhcp.go:60:14: cannot use &discoveryPacket (type *"github.com/krolaw/dhcp4".Packet) as type *"github.com/d2g/dhcp4".Packet in argument to addHostname...
The client (v2) currently assumes that the Server Identified (Option 54) is included in the response ACK and NACK packets as per [RFC 2131 p28](https://tools.ietf.org/html/rfc2131#section-4.3.1). This however contradicts [RFC 2132...
The current implementation can not be bound to a specific interface. I implement a DHCPv4 client on my own. In case someone is interested in the code: https://github.com/digineo/go-dhclient
Examples
Hi. Just wondering if there is any example code or documentation on how to use the package. Thanks,