Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFailOverService ¶
NewFailOverService returns a new dhcpd Service with failover mode on.
Types ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool is a dhcp pool.
func (*Pool) LeaseStaticIP ¶
func (p *Pool) LeaseStaticIP(mac net.HardwareAddr, ip netip.Addr)
LeaseStaticIP leases static ip from pool according to the given mac.
func (*Pool) ReleaseIP ¶
func (p *Pool) ReleaseIP(mac net.HardwareAddr)
ReleaseIP releases ip from pool according to the given mac.
Click to show internal directories.
Click to hide internal directories.