aboutsummaryrefslogtreecommitdiff
path: root/toys/net
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
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')
-rw-r--r--toys/net/microcom.c4
-rw-r--r--toys/net/netstat.c22
-rw-r--r--toys/net/ping.c22
3 files changed, 24 insertions, 24 deletions
diff --git a/toys/net/microcom.c b/toys/net/microcom.c
index 62fe85e6..7311e9d7 100644
--- a/toys/net/microcom.c
+++ b/toys/net/microcom.c
@@ -12,8 +12,8 @@ config MICROCOM
Simple serial console.
- -s Set baud rate to SPEED
- -X Ignore ^@ (send break) and ^] (exit).
+ -s Set baud rate to SPEED
+ -X Ignore ^@ (send break) and ^] (exit).
*/
#define FOR_microcom
diff --git a/toys/net/netstat.c b/toys/net/netstat.c
index 7d672488..7bebb327 100644
--- a/toys/net/netstat.c
+++ b/toys/net/netstat.c
@@ -14,17 +14,17 @@ config NETSTAT
Display networking information. Default is netsat -tuwx
- -r routing table
- -a all sockets (not just connected)
- -l listening server sockets
- -t TCP sockets
- -u UDP sockets
- -w raw sockets
- -x unix sockets
- -e extended info
- -n don't resolve names
- -W wide display
- -p PID/Program name of sockets
+ -r routing table
+ -a all sockets (not just connected)
+ -l listening server sockets
+ -t TCP sockets
+ -u UDP sockets
+ -w raw sockets
+ -x unix sockets
+ -e extended info
+ -n don't resolve names
+ -W wide display
+ -p show PID/program name of sockets
*/
#define FOR_netstat
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