Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Aug 1999 21:30:27 -0400 (EDT)
From:      chris@netmonger.net
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   docs/13037: netstat(1) -a flag with -r is undocumented
Message-ID:  <199908090130.VAA50169@lion-around.at.yiff.net>

next in thread | raw e-mail | index | archive | help

>Number:         13037
>Category:       docs
>Synopsis:       netstat(1) -a flag with -r is undocumented
>Confidential:   yes
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug  8 18:40:00 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Christopher Masto
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
>Environment:



>Description:

netstat(1) doesn't show protocol-cloned routes unless the -a option is used.
This behavior is not documented in the man page or usage output.

>How-To-Repeat:

man netstat

>Fix:
	
Here's a patch:

Index: main.c
===================================================================
RCS file: /usr/cvs/freebsd/src/usr.bin/netstat/main.c,v
retrieving revision 1.25
diff -u -r1.25 main.c
--- main.c	1999/04/26 16:11:48	1.25
+++ main.c	1999/08/09 01:25:58
@@ -568,7 +568,7 @@
 {
 	(void)fprintf(stderr, "%s\n%s\n%s\n%s\n",
 "usage: netstat [-Aan] [-f address_family] [-M core] [-N system]",
-"       netstat [-bdghimnrs] [-f address_family] [-M core] [-N system]",
+"       netstat [-abdghimnrs] [-f address_family] [-M core] [-N system]",
 "       netstat [-bdn] [-I interface] [-M core] [-N system] [-w wait]",
 "       netstat [-M core] [-N system] [-p protocol]");
 	exit(1);
Index: netstat.1
===================================================================
RCS file: /usr/cvs/freebsd/src/usr.bin/netstat/netstat.1,v
retrieving revision 1.13
diff -u -r1.13 netstat.1
--- netstat.1	1999/07/12 20:23:49	1.13
+++ netstat.1	1999/08/09 01:25:58
@@ -88,6 +88,9 @@
 With the default display,
 show the state of all sockets; normally sockets used by
 server processes are not shown.
+With the routing table display, show protocol-cloned routes (routes
+generated by a RTF_PRCLONING parent route); normally these routes are
+not shown.
 .It Fl b
 With the interface display (option
 .Fl i
@@ -182,6 +185,9 @@
 If this option is repeated, counters with a value of zero are suppressed.
 .It Fl r
 Show the routing tables.
+Use with
+.Fl a
+to show protocol-cloned routes.
 When
 .Fl s
 is also present, show routing statistics instead.



>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




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