[patch] netstat usage update
Pawel Worach
pawel.worach at telia.com
Tue Oct 19 15:33:40 PDT 2004
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
More information about the freebsd-current
mailing list