Documentation ¶
Overview ¶
Package dhcp4 implements a DHCPv4 client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Interface *net.Interface // e.g. net.InterfaceByName("eth0") HWAddr net.HardwareAddr // last DHCPACK packet for renewal/release Ack *layers.DHCPv4 // contains filtered or unexported fields }
func (*Client) ObtainOrRenew ¶
ObtainOrRenew returns false when encountering a permanent error.
Click to show internal directories.
Click to hide internal directories.