aboutsummaryrefslogtreecommitdiff
path: root/toys/net/ping.c
AgeCommit message (Collapse)Author
2020-02-26Fix bugs reported by anatasluo: min/range/max were out of order,Rob Landley
min/max weren't being calculated, only print summary when we recieved at least one reply packet. And switch to FLAG() macros.
2019-07-11bind/connect cleanup.Elliott Hughes
Rename the existing xbind/xconnect to xbindany/xconnectany, to make room for new xbind/xconnect that are more like 'x' versions of the regular bind and connect. Move explicit bind/connect callers over to xbind/xconnect. Of the affected commands, only netcat is actually used by Android. It was the most recent patch to netcat that made the lack of a more traditional xbind/xconnect apparent.
2019-02-13Use xrecvwait() in ping, and move signal handler setup to start of ping loop.Rob Landley
2019-01-16Move xsendto() to lib/net.c.Rob Landley
2018-11-17Convert more GLOBALS argument vars to the new single letter code style.Rob Landley
2018-10-21Add % to lib/args.c (long time in milliseconds), add xmillitime(), redoRob Landley
xparsetime() not to need floating point, adjust callers.
2018-10-20Some more --help consistency.Elliott Hughes
From eyeballing the output of for i in `./toybox | tr " " "\n"` ; do ./toybox $i --help ; done | \ grep '^-' | grep -v "\t"
2018-07-08Fix ping -w and -W, fix ping -c with no reply (kept sending while waiting),Rob Landley
and trim -W default to 3 seconds (so "time ping 1.2.3.4" says 5 seconds).
2018-07-08Fix division by zero errors and double summary in ping.Rob Landley
2018-06-14I tend to put extra parentheses around & because its precedence being slightlyRob Landley
wonky was Dennis Ritche's one public regret about C (see https://www.lysator.liu.se/c/dmr-on-or.html).
2018-06-14ping: support ping6 as a synonym for `ping -6`.Elliott Hughes
Sadly, this is what existing scripts seem to do.
2018-06-13ping: add -m, switch to xsetsockopt.Elliott Hughes
Bug: http://b/28027677 toybox ping doesn't support -m mark Test: strace -e setsockopt ./toybox ping -c 1 -m 0x1000 127.0.0.1
2018-06-11Promote ping to toys/netRob Landley