Debian Codegraph @

README.md

raw symbols SCIP
1 [![pkg.go.dev](https://godoc.org/github.com/j-keck/arping?status.svg)](https://pkg.go.dev/github.com/j-keck/arping)
2
3 # arping
4
5 arping is a native go library to ping a host per arp datagram, or query a host mac address
6
7 The currently supported platforms are: Linux and BSD.
8
9
10 ## Usage
11 ### arping library
12
13 * import this library per `import "github.com/j-keck/arping"`
14 * export GOPATH if not already (`export GOPATH=$PWD`)
15 * download the library `go get`
16 * run it `sudo -E go run <YOUR PROGRAMM>`
17 * or build it `go build`
18
19
20 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>`.
21
22 For api doc and examples see: [godoc](http://godoc.org/github.com/j-keck/arping) or check the standalone under 'cmd/arping/main.go'.
23
24
25
26 ### arping executable
27
28 To get a runnable pinger use `go get -u github.com/j-keck/arping/cmd/arping`. This will build the binary in $GOPATH/bin.
29
30 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>`.
31