Developing lightweight computation at the DSG edge

Commit 3535a0e9 authored by Cameron Sparr's avatar Cameron Sparr
Browse files

Update doc on privileged ping and install

parent 77403bd6
...@@ -43,7 +43,21 @@ It sends ICMP packet(s) and waits for a response. If it receives a response, ...@@ -43,7 +43,21 @@ It sends ICMP packet(s) and waits for a response. If it receives a response,
it calls the "receive" callback. When it's finished, it calls the "finish" it calls the "receive" callback. When it's finished, it calls the "finish"
callback. callback.
For a full ping example, see "cmd/ping/ping.go". For a full ping example, see
[cmd/ping/ping.go"](https://github.com/sparrc/go-ping/blob/master/cmd/ping/ping.go)
## Installation:
```
go get github.com/sparrc/go-ping
```
To install the native Go ping executable:
```bash
go get github.com/sparrc/go-ping/...
$GOPATH/bin/ping
```
## Note on Linux Support: ## Note on Linux Support:
......
...@@ -11,7 +11,7 @@ import ( ...@@ -11,7 +11,7 @@ import (
var usage = ` var usage = `
Usage: Usage:
ping [-c count] [-i interval] [-t timeout] host ping [-c count] [-i interval] [-t timeout] [--privileged] host
Examples: Examples:
...@@ -26,6 +26,9 @@ Examples: ...@@ -26,6 +26,9 @@ Examples:
# ping google for 10 seconds # ping google for 10 seconds
ping -t 10s www.google.com ping -t 10s www.google.com
# Send a privileged raw ICMP ping
sudo ping --privileged www.google.com
` `
func main() { func main() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment