Ivan Mikushin 1d691cd8d6 move dependencies to vendor | 9 年之前 | |
---|---|---|
.. | ||
.gitignore | 9 年之前 | |
LICENSE | 9 年之前 | |
README.md | 9 年之前 | |
arp_datagram.go | 9 年之前 | |
arping.go | 9 年之前 | |
arping_bsd.go | 9 年之前 | |
arping_linux.go | 9 年之前 | |
arping_windows.go | 9 年之前 | |
netutils.go | 9 年之前 |
arping is a native go library to ping a host per arp datagram, or query a host mac address
The currently supported platforms are: Linux and BSD.
import "github.com/j-keck/arping"
export GOPATH=$PWD
)go get
sudo -E go run <YOUR PROGRAMM>
go build
The library requires raw socket access. So it must run as root, or with appropriate capabilities under linux: sudo setcap cap_net_raw+ep <BIN>
.
For api doc and examples see: godoc or check the standalone under 'cmd/arping/main.go'.
To get a runnable pinger use go get -u github.com/j-keck/arping/cmd/arping
. This will build the binary in $GOPATH/bin.
arping requires raw socket access. So it must run as root, or with appropriate capabilities under Linux: sudo setcap cap_net_raw+ep <ARPING_PATH>
.