aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-05-15 23:57:46 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-05-15 23:57:46 +0000
commit418a7fb29b19e42818b5df681c83b3bfc62db3c6 (patch)
tree2d52ed5b0dac5336e5e4c2f19321d6f6eaeb9206 /include
parentc2b3e370d6b98ef37d48582d55b26794ac2bf63f (diff)
downloadbusybox-w32-418a7fb29b19e42818b5df681c83b3bfc62db3c6.tar.gz
busybox-w32-418a7fb29b19e42818b5df681c83b3bfc62db3c6.tar.bz2
busybox-w32-418a7fb29b19e42818b5df681c83b3bfc62db3c6.zip
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 eab96011e..4a18d6a3a 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -2416,21 +2416,23 @@
2416 2416
2417#endif 2417#endif
2418 2418
2419
2420#define netstat_trivial_usage \ 2419#define netstat_trivial_usage \
2421 "[-laenrtuwx]" 2420 "[-laentuwxr"USE_FEATURE_NETSTAT_WIDE("W")"]"
2422#define netstat_full_usage \ 2421#define netstat_full_usage \
2423 "Display networking information" \ 2422 "Display networking information" \
2424 "\n\nOptions:\n" \ 2423 "\n\nOptions:" \
2425 " -l Display listening server sockets\n" \ 2424 "\n -l Display listening server sockets" \
2426 " -a Display all sockets (default: connected)\n" \ 2425 "\n -a Display all sockets (default: connected)" \
2427 " -e Display other/more information\n" \ 2426 "\n -e Display other/more information" \
2428 " -n Don't resolve names\n" \ 2427 "\n -n Don't resolve names" \
2429 " -r Display routing table\n" \ 2428 "\n -t Tcp sockets" \
2430 " -t Tcp sockets\n" \ 2429 "\n -u Udp sockets" \
2431 " -u Udp sockets\n" \ 2430 "\n -w Raw sockets" \
2432 " -w Raw sockets\n" \ 2431 "\n -x Unix sockets" \
2433 " -x Unix sockets" 2432 "\n -r Display routing table" \
2433 USE_FEATURE_NETSTAT_WIDE( \
2434 "\n -W Display with no column truncation" \
2435 )
2434 2436
2435#define nice_trivial_usage \ 2437#define nice_trivial_usage \
2436 "[-n ADJUST] [COMMAND [ARG] ...]" 2438 "[-n ADJUST] [COMMAND [ARG] ...]"