git clone https://github.com/shvms/pingo.git
cd pingo
go build
sudo ./pingo google.com
- Reports RTT and loss percentage for sent messages.
- Allows to set custom TTL as
-ttl=<value>
argument and displays corresponding 'Time/TTL Exceeded' message. - Extra features include arguments:
count
for sending & receiving fixed number of packetsinterval
for sending ping requests at a custom intervaltimeout
for waiting a certain time period for a ping reply before sending new one.packetsize
for sending ICMP packets of required size (in bytes).
- Supports both IPv4 & IPv6.
- Note: Currently,
pingo
does not support non-root access. For that a UDP message with a random number asID
needs to be sent.non-privileged
mode will be added later.
sudo ./pingo [-c=count] [-i=interval] [-t=timeout] [-ttl=TTL] [-s=packetsize] [-6] host
Example:
sudo ./pingo -c=7 -i=1200 google.com
count
: Unsigned integer. 0 represents infinite ping.
interval
: Unsigned Integer. Interval between each ICMP Echo request (in ms). Defaults to 1000ms.
timeout
: Unsigned Integer. Timeout to wait for response from the host (in ms). Defaults to 1000ms.
packetsize
: Unsigned Integer. Packet size, in bytes, to ping with. Defaults to 32 bytes.
ttl
: Integer. Time-to-live of the ICMP packets sent. Defaults to 64.
6
: Use IPv6.