Documentation ¶
Index ¶
- type DHCPServer
- func (s *DHCPServer) AddIgnoreToReply()
- func (s *DHCPServer) AddReply(p packet.DHCPPacket, options ...option.DHCPOption)
- func (s *DHCPServer) AddReplyWithDelay(p packet.DHCPPacket, delay time.Duration, options ...option.DHCPOption)
- func (s *DHCPServer) HandleCommands(data incomingData, r Reply)
- func (s *DHCPServer) Listen()
- func (s *DHCPServer) ReadAllReceivedPackets() []packet.DHCPPacket
- func (s *DHCPServer) ReadAllSentPackets() []packet.DHCPPacket
- func (s *DHCPServer) Stop()
- type Reply
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)
Click to show internal directories.
Click to hide internal directories.