dhcpd

package
v0.13.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

type Pool struct {
	// contains filtered or unexported fields
}

Pool is a dhcp pool.

func NewPool

func NewPool(lease time.Duration, start, end net.IP) (*Pool, error)

NewPool returns a new dhcp ip pool.

func (*Pool) AssignIP

func (p *Pool) AssignIP(mac net.HardwareAddr) (net.IP, error)

AssignIP assigns an ip to mac from dhco pool.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL