dhcpd

package
v0.0.0-...-63c3a42 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DhcpServer

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

func New

func New(interfaceNames []string, dynamicLeasesFile string,
	logger log.DebugLogger) (*DhcpServer, error)

func (*DhcpServer) AddLease

func (s *DhcpServer) AddLease(address proto.Address, hostname string) error

func (*DhcpServer) AddNetbootLease

func (s *DhcpServer) AddNetbootLease(address proto.Address,
	hostname string, subnet *proto.Subnet) error

func (*DhcpServer) AddSubnet

func (s *DhcpServer) AddSubnet(subnet proto.Subnet)

func (*DhcpServer) MakeAcknowledgmentChannel

func (s *DhcpServer) MakeAcknowledgmentChannel(ipAddr net.IP) <-chan struct{}

func (*DhcpServer) MakeRequestChannel

func (s *DhcpServer) MakeRequestChannel(macAddr string) <-chan net.IP

func (*DhcpServer) RemoveLease

func (s *DhcpServer) RemoveLease(ipAddr net.IP)

func (*DhcpServer) RemoveSubnet

func (s *DhcpServer) RemoveSubnet(subnetId string)

func (*DhcpServer) ServeDHCP

func (s *DhcpServer) ServeDHCP(req dhcp.Packet, msgType dhcp.MessageType,
	options dhcp.Options) dhcp.Packet

func (*DhcpServer) SetNetworkBootImage

func (s *DhcpServer) SetNetworkBootImage(nbiName string) error

func (*DhcpServer) WriteHtml

func (s *DhcpServer) WriteHtml(writer io.Writer)

Jump to

Keyboard shortcuts

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