Documentation ¶
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
Variables ¶
This section is empty.
Functions ¶
func InjectArp ¶
InjectArp injects an ARP entry into dev's ARP table 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 ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.