denilsonsa / prettyping

`prettyping` is a wrapper around the standard `ping` tool, making the output prettier, more colorful, more compact, and easier to read.
http://denilsonsa.github.io/prettyping/
MIT License
1.21k stars 78 forks source link

Handle "No route to host" message on macOS #39

Open xwang1498 opened 1 month ago

xwang1498 commented 1 month ago

On macOS, if your network connection goes down, the prettyping output will be trashed with lots of ping: sendto: No route to host lines.

We should just ignore these, because we'll still get the necessary Request timeout for icmp_seq ... line soon after.

Closes #24. Closes #25 which also tries to solve this problem but double counts lost packets.