Documentation
¶
Index ¶
Constants ¶
View Source
const DuidEn uint16 = 2
DuidEn is the DUID type; see https://tools.ietf.org/html/rfc3315#section-9.3
View Source
const VMwarePEN uint32 = 6876
VMwarePEN is VMware's PEN (Private Enterprise Number); see http://www.iana.org/assignments/enterprise-numbers/enterprise-numbers
Variables ¶
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
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
Source Files
¶
- client.go
- id.go
Click to show internal directories.
Click to hide internal directories.