Documentation ¶
Overview ¶
Package dhcp4d implements a DHCPv4 server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { LeasePeriod time.Duration // Leases is called whenever a new lease is handed out Leases func([]*Lease, *Lease) // contains filtered or unexported fields }
func NewHandler ¶
func (*Handler) ServeDHCP ¶
func (h *Handler) ServeDHCP(p dhcp4.Packet, msgType dhcp4.MessageType, options dhcp4.Options) dhcp4.Packet
ServeDHCP is always called from the same goroutine, so no locking is required.
func (*Handler) SetHostname ¶
type Lease ¶
Click to show internal directories.
Click to hide internal directories.