aboutsummaryrefslogtreecommitdiff
path: root/toys/net/ping.c
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2018-10-17 16:21:37 -0700
committerRob Landley <rob@landley.net>2018-10-20 14:52:08 -0500
commit74f22a7d5cb6ed03f00c261fb4e28b411f1c4c0a (patch)
tree7dcfe85f05948afe402a9a399d0d37d6a7d4d23a /toys/net/ping.c
parent3727bafda4093dffaec93a9f679f997c3df8bf70 (diff)
downloadtoybox-74f22a7d5cb6ed03f00c261fb4e28b411f1c4c0a.tar.gz
Some more --help consistency.
From eyeballing the output of for i in `./toybox | tr " " "\n"` ; do ./toybox $i --help ; done | \ grep '^-' | grep -v "\t"
Diffstat (limited to 'toys/net/ping.c')
-rw-r--r--toys/net/ping.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/toys/net/ping.c b/toys/net/ping.c
index b21abb7b..752879a2 100644
--- a/toys/net/ping.c
+++ b/toys/net/ping.c
@@ -27,17 +27,17 @@ config PING
echo it receives back, with round trip time. Returns true if host alive.
Options:
- -4, -6 Force IPv4 or IPv6
- -c CNT Send CNT many packets (default 3, 0 = infinite)
- -f Flood (print . and \b to show drops, default -c 15 -i 0.2)
- -i TIME Interval between packets (default 1, need root for < .2)
- -I IFACE/IP Source interface or address
- -m MARK Tag outgoing packets using SO_MARK
- -q Quiet (stops after one returns true if host is alive)
- -s SIZE Data SIZE in bytes (default 56)
- -t TTL Set Time To Live (number of hops)
- -W SEC Seconds to wait for response after last -c packet (default 3)
- -w SEC Exit after this many seconds
+ -4, -6 Force IPv4 or IPv6
+ -c CNT Send CNT many packets (default 3, 0 = infinite)
+ -f Flood (print . and \b to show drops, default -c 15 -i 0.2)
+ -i TIME Interval between packets (default 1, need root for < .2)
+ -I IFACE/IP Source interface or address
+ -m MARK Tag outgoing packets using SO_MARK
+ -q Quiet (stops after one returns true if host is alive)
+ -s SIZE Data SIZE in bytes (default 56)
+ -t TTL Set Time To Live (number of hops)
+ -W SEC Seconds to wait for response after last -c packet (default 3)
+ -w SEC Exit after this many seconds
*/
#define FOR_ping