test

package
v0.0.0-...-6fa9711 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: MIT Imports: 13 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 {
	ReceivedPackets chan packet.DHCPPacket
	SentPackets     chan packet.DHCPPacket
	// contains filtered or unexported fields
}

func NewDHCPServer

func NewDHCPServer(addr net.IP, port int) DHCPServer

func (*DHCPServer) AddIgnoreToReply

func (s *DHCPServer) AddIgnoreToReply()

func (*DHCPServer) AddReply

func (s *DHCPServer) AddReply(p packet.DHCPPacket, options ...option.DHCPOption)

func (*DHCPServer) AddReplyWithDelay

func (s *DHCPServer) AddReplyWithDelay(p packet.DHCPPacket, delay time.Duration, options ...option.DHCPOption)

func (*DHCPServer) HandleCommands

func (s *DHCPServer) HandleCommands(data incomingData, r Reply)

func (*DHCPServer) Listen

func (s *DHCPServer) Listen()

func (*DHCPServer) ReadAllReceivedPackets

func (s *DHCPServer) ReadAllReceivedPackets() []packet.DHCPPacket

func (*DHCPServer) ReadAllSentPackets

func (s *DHCPServer) ReadAllSentPackets() []packet.DHCPPacket

func (*DHCPServer) Stop

func (s *DHCPServer) Stop()

type Reply

type Reply func(dhcpPacket packet.DHCPPacket) (packet.DHCPPacket, bool)

Jump to

Keyboard shortcuts

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