Developing lightweight computation at the DSG edge
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LightKone
go-ping
Commits
f1680c89
Commit
f1680c89
authored
Feb 03, 2016
by
Cameron Sparr
Browse files
put setcap command in README
parent
8ee98d82
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
f1680c89
...
...
@@ -70,7 +70,12 @@ sudo sysctl -w net.ipv4.ping_group_range="0 2147483647"
```
If you do not wish to do this, you can set
`pinger.SetPrivileged(true)`
and
run as super-user.
use setcap to allow your binary using go-ping to bind to raw sockets
(or just run as super-user):
```
setcap cap_net_raw=+ep /bin/goping-binary
```
See
[
this blog
](
https://sturmflut.github.io/linux/ubuntu/2015/01/17/unprivileged-icmp-sockets-on-linux/
)
and
[
the Go icmp library
](
https://godoc.org/golang.org/x/net/icmp
)
for more details.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment