Documentation ¶
Index ¶
- func BuildCustomARPPacket(arpData ARPPacket) (result gopacket.SerializeBuffer)
- func CalculateIPs(n *net.IPNet) (out []net.IP)
- func ReadARP(waitGroup *sync.WaitGroup, handle *pcap.Handle, ...)
- func WriteARP(handle *pcap.Handle, networkInterface *net.Interface, addr *net.IPNet) error
- func WriteARPOnInterval(interval string, stopChannel <-chan os.Signal, waitGroup *sync.WaitGroup, ...)
- type ARPPacket
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildCustomARPPacket ¶
func BuildCustomARPPacket(arpData ARPPacket) (result gopacket.SerializeBuffer)
BuildCustomARPPacket writes up a custom package forged for a specific network interface and can be customized by changing the Source MAC address, the Destination MAC address the Source IP address and the Destination IP address
func CalculateIPs ¶
CalculateIPs is a simple and not very good method for getting all IPv4 addresses from a net.IPNet. It returns all IPs it can over the channel it sends back, closing the channel when done.
func ReadARP ¶
func ReadARP(waitGroup *sync.WaitGroup, handle *pcap.Handle, networkInterface *net.Interface, stop <-chan os.Signal)
readARP watches a handle for incoming ARP responses we might care about, and prints them. note: loops until 'stop' receives data.
Types ¶
Click to show internal directories.
Click to hide internal directories.