arping
arping copied to clipboard
native go library to ping a host per arp datagram, or query a host mac address
using sock.deinitialize() outside of the goroutine that is using the socket leaves the potential for erroneous and unexpected behavior. When calling Ping() very quickly the socket fd can be reused...
can use logger

arping.go:120:12: assignment mismatch: 2 variables but initialize returns 1 value arping.go:207:12: assignment mismatch: 2 variables but initialize returns 1 value
Some server may have multiple ip address in the same network, or have custom route table. Need to have some way to specify the source IP address.
I had to check with arp request 5 networks 192.x.x.x/ 23 and 2 networks 192.x.x.x/ 22. I did it sequentially in a loop, and I ran into a problem that...