Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Oct 2004 00:32:16 +0200
From:      Pawel Worach <pawel.worach@telia.com>
To:        current@freebsd.org
Subject:   Re: [patch] netstat usage update
Message-ID:  <417595F0.9080701@telia.com>
In-Reply-To: <41759418.20703@telia.com>
References:  <41759418.20703@telia.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Pawel Worach wrote:
 > The -c (cache stats) parameter was removed in main.c:1.68 (mbuma change)
 > so remove it from the usage.
 >

Missed the getopt() thing.

Index: usr.bin/netstat/main.c
===================================================================
RCS file: /export/ctm/cvs/src/usr.bin/netstat/main.c,v
retrieving revision 1.69
diff -u -r1.69 main.c
--- usr.bin/netstat/main.c      26 Jul 2004 20:18:11 -0000      1.69
+++ usr.bin/netstat/main.c      19 Oct 2004 22:31:25 -0000
@@ -287,7 +287,7 @@

         af = AF_UNSPEC;

-       while ((ch = getopt(argc, argv, "Aabcdf:gI:iLlM:mN:np:rSstuWw:z")) != -1)
+       while ((ch = getopt(argc, argv, "Aabdf:gI:iLlM:mN:np:rSstuWw:z")) != -1)
                 switch(ch) {
                 case 'A':
                         Aflag = 1;
@@ -689,7 +689,7 @@
  "       netstat -s [-s] [-z] [-f protocol_family | -p protocol] [-M core]",
  "       netstat -i | -I interface -s [-f protocol_family | -p protocol]\n"
  "               [-M core] [-N system]",
-"       netstat -m [-c] [-M core] [-N system]",
+"       netstat -m [-M core] [-N system]",
  "       netstat -r [-AenW] [-f address_family] [-M core] [-N system]",
  "       netstat -rs [-s] [-M core] [-N system]",
  "       netstat -g [-W] [-f address_family] [-M core] [-N system]",

-- 
Pawel



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?417595F0.9080701>