godwinpang / goping

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

goping

Goping is a lightweight CLI tool designed to replicate the basic features of the ping cli. The tool was designed to have minimal dependencies, only using Cobra for CLI utilities.

Monitoring incoming ICMP requests requires root access and so the compiled binary resulting from this codebase has to be run with sudo. (ping has setuid)

How To Use

sudo goping <hostname>
sudo goping <ip>

Implemented Features

  • IPv4 ICMP Echo packets are sent out in an infinite loop.
  • Packet losses and RTT times are reported for each message.
  • On ctrl-C, goping displays statistics for the echo requests.

About

License:Apache License 2.0


Languages

Language:Go 98.8%Language:Makefile 1.2%