Documentation
¶
Overview ¶
Package dhcpd contains snippets from MIT-licensed coredhcp project at https://github.com/coredhcp/coredhcp
Package dhcpd contains snippets from MIT-licensed coredhcp project at https://github.com/coredhcp/coredhcp
Index ¶
Constants ¶
View Source
const ( // completed entry (ha valid) ATF_COM = 0x02 // permanent entry ATF_PERM = 0x04 // publish entry ATF_PUBL = 0x08 // has requested trailers ATF_USETRAILERS = 0x10 // want to use a netmask (only for proxy entries) ATF_NETMASK = 0x20 // don't answer this addresses ATF_DONTPUB = 0x40 )
ARP Flag values these are not in golang.org/x/sys/unix
View Source
const MaxDatagram = 1 << 16
MaxDatagram is the maximum length of message that can be received.
Variables ¶
This section is empty.
Functions ¶
func InjectArp ¶
syscalls roughly based on https://www.unix.com/302447674-post3.html see:
https://github.com/torvalds/linux/blob/8cf8821e15cd553339a5b48ee555a0439c2b2742/net/ipv4/arp.c#L1179 https://github.com/torvalds/linux/blob/8cf8821e15cd553339a5b48ee555a0439c2b2742/net/ipv4/arp.c#L1024
func InjectArpFd ¶
Types ¶
type Server ¶
type Server struct { UdpConn *net.UDPConn *ipv4.PacketConn net.Interface // contains filtered or unexported fields }
func (*Server) HandleMsg4 ¶
Click to show internal directories.
Click to hide internal directories.