summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenis Vlasenko2007-05-15 23:57:46 +0000
committerDenis Vlasenko2007-05-15 23:57:46 +0000
commit418a7fb29b19e42818b5df681c83b3bfc62db3c6 (patch)
tree2d52ed5b0dac5336e5e4c2f19321d6f6eaeb9206 /include
parentc2b3e370d6b98ef37d48582d55b26794ac2bf63f (diff)
downloadbusybox-418a7fb29b19e42818b5df681c83b3bfc62db3c6.zip
busybox-418a7fb29b19e42818b5df681c83b3bfc62db3c6.tar.gz
netstat: introduce -W: wide, ipv6-friendly output
netstat: shrink by ~500 bytes (patch by Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com>) netstat: fix for bogus state value for raw sockets
Diffstat (limited to 'include')
-rw-r--r--include/usage.h26
1 files changed, 14 insertions, 12 deletions
diff --git a/include/usage.h b/include/usage.h
index eab9601..4a18d6a 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -2416,21 +2416,23 @@
#endif
-
#define netstat_trivial_usage \
- "[-laenrtuwx]"
+ "[-laentuwxr"USE_FEATURE_NETSTAT_WIDE("W")"]"
#define netstat_full_usage \
"Display networking information" \
- "\n\nOptions:\n" \
- " -l Display listening server sockets\n" \
- " -a Display all sockets (default: connected)\n" \
- " -e Display other/more information\n" \
- " -n Don't resolve names\n" \
- " -r Display routing table\n" \
- " -t Tcp sockets\n" \
- " -u Udp sockets\n" \
- " -w Raw sockets\n" \
- " -x Unix sockets"
+ "\n\nOptions:" \
+ "\n -l Display listening server sockets" \
+ "\n -a Display all sockets (default: connected)" \
+ "\n -e Display other/more information" \
+ "\n -n Don't resolve names" \
+ "\n -t Tcp sockets" \
+ "\n -u Udp sockets" \
+ "\n -w Raw sockets" \
+ "\n -x Unix sockets" \
+ "\n -r Display routing table" \
+ USE_FEATURE_NETSTAT_WIDE( \
+ "\n -W Display with no column truncation" \
+ )
#define nice_trivial_usage \
"[-n ADJUST] [COMMAND [ARG] ...]"