From 418a7fb29b19e42818b5df681c83b3bfc62db3c6 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 15 May 2007 23:57:46 +0000 Subject: netstat: introduce -W: wide, ipv6-friendly output netstat: shrink by ~500 bytes (patch by Cristian Ionescu-Idbohrn ) netstat: fix for bogus state value for raw sockets --- include/usage.h | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'include') 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 @@ #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] ...]" -- cgit v1.2.3