Documentation ¶
Overview ¶
Package dhclient provides a unified interface for interfacing with both DHCPv4 and DHCPv6 clients.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Configure4 ¶
Configure4 adds IP addresses, routes, and DNS servers to the system.
func Configure6 ¶
Configure6 adds IPv6 addresses, routes, and DNS servers to the system.
func WriteDNSSettings ¶
WriteDNSSettings writes the given IPs as nameservers to resolv.conf.
Types ¶
type Packet4 ¶
Packet4 implements convenience functions for DHCPv4 packets.
func NewPacket4 ¶
NewPacket4 wraps a DHCPv4 packet with some convenience methods.
type Packet6 ¶
type Packet6 struct {
// contains filtered or unexported fields
}
Packet6 implements Packet for IPv6 DHCP.
func NewPacket6 ¶
NewPacket6 wraps a DHCPv6 packet with some convenience methods.
Click to show internal directories.
Click to hide internal directories.