https://github.com/codenoid/cloudflare-system-internship-task-2020
🔥 Basic option, IPv4 & IPv6 support, Save output as HTML, change percentile
https://github.com/codenoid/cloudflare-system-internship-task-2020
golang icmp ping
Last synced: 10 months ago
JSON representation
🔥 Basic option, IPv4 & IPv6 support, Save output as HTML, change percentile
- Host: GitHub
- URL: https://github.com/codenoid/cloudflare-system-internship-task-2020
- Owner: codenoid
- License: bsd-2-clause
- Created: 2020-04-14T01:36:34.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-20T02:06:39.000Z (almost 6 years ago)
- Last Synced: 2025-04-22T23:06:42.188Z (10 months ago)
- Topics: golang, icmp, ping
- Language: Go
- Homepage:
- Size: 76.2 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Goping
ping implementation in Go based on golang.org/x/net/icmp as part [Cloudflare Internship Task](https://github.com/cloudflare-internship-2020/internship-application-systems)

## Building
1. Make sure Go already installed on your machine
2. run `go build`
## Usage
```
$ ./goping
usage: ./goping google.com
usage: ./goping -i 2 -t 3 127.0.0.1
usage: ./goping ::1
usage: ./goping -i 2 -t 3 -html google.com
-html
Save HTML Output (ping statistic)
-i int
request interval delay in second (default 1)
-q Quiet output. Nothing is displayed except summary when finished.
-t int
request timeout in second (default 10)
-ttl int
set IP Time To Live (default 64)
```
## Troubleshooting
* Q: socket: permission denied
* A: run ./goping as sudo or `sudo sysctl -w net.ipv4.ping_group_range="0 2147483647"`