Documentation ¶
Index ¶
Constants ¶
const DuidEn uint16 = 2
DuidEn is the DUID type; see https://tools.ietf.org/html/rfc3315#section-9.3
const VMwarePEN uint32 = 6876
VMwarePEN is VMware's PEN (Private Enterprise Number); see http://www.iana.org/assignments/enterprise-numbers/enterprise-numbers
Variables ¶
var Sys system.System
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // SetTimeout sets the timeout for a subsequent DHCP request SetTimeout(t time.Duration) // Request sends a full DHCP request, resulting in a DHCP lease. // On a successful lease, returns a DHCP acknowledgment packet Request() error // Renew renews an existing DHCP lease. Returns a new acknowledgment // packet on success. Renew() error // Release releases an existing DHCP lease. Release() error // SetParamterRequestList sets the DHCP parameter request list // per RFC 2132, section 9.8 SetParameterRequestList(...byte) // LastAck returns the last ack packet from a request or renew operation. LastAck() *dhcp.Packet }
Client represents a DHCP client
type Duid ¶
Duid is a vendor based DUID per https://tools.ietf.org/html/rfc3315#section-9.3
func (Duid) MarshalBinary ¶
MarshalBinary implements the BinaryMarshaler interface
type ID ¶
ID is a DHCPv4 client ID
func NewID ¶
func NewID(ifindex int, hw net.HardwareAddr) (ID, error)
NewID generates a DHCPv4 client ID, per https://tools.ietf.org/html/rfc4361#section-6.1
func (ID) MarshalBinary ¶
MarshalBinary implements the BinaryMarshaler interface
type Iaid ¶
type Iaid []byte
Iaid is an opaque 32-bit identifier unique to a network interface; see https://tools.ietf.org/html/rfc4361#section-6.1
func (Iaid) MarshalBinary ¶
MarshalBinary implements the BinaryMarshaler interface