summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornik <nik@FreeBSD.org>1999-08-11 22:25:55 +0000
committernik <nik@FreeBSD.org>1999-08-11 22:25:55 +0000
commit5d1b5dae7c84b119c7316be0fa593bd75cdfce53 (patch)
tree827d0cc3f74a76c727034de5c84bf5fcf34c930b
parent46598fe94b61fd330f0de81e7a482d358edbbf78 (diff)
downloadFreeBSD-src-5d1b5dae7c84b119c7316be0fa593bd75cdfce53.zip
FreeBSD-src-5d1b5dae7c84b119c7316be0fa593bd75cdfce53.tar.gz
Document the use of the -a flag in conjunction with the -r flag.
PR: docs/13037 Submitted by: Christopher Masto <chris@netmonger.net>
-rw-r--r--usr.bin/netstat/main.c4
-rw-r--r--usr.bin/netstat/netstat.110
2 files changed, 11 insertions, 3 deletions
diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c
index b1ada41..0f3072e 100644
--- a/usr.bin/netstat/main.c
+++ b/usr.bin/netstat/main.c
@@ -42,7 +42,7 @@ char const copyright[] =
static char sccsid[] = "@(#)main.c 8.4 (Berkeley) 3/1/94";
#endif
static const char rcsid[] =
- "$Id: main.c,v 1.24 1999/02/06 19:12:48 jhay Exp $";
+ "$Id: main.c,v 1.25 1999/04/26 16:11:48 luigi Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -568,7 +568,7 @@ usage()
{
(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);
diff --git a/usr.bin/netstat/netstat.1 b/usr.bin/netstat/netstat.1
index dd47196..22b3a5d 100644
--- a/usr.bin/netstat/netstat.1
+++ b/usr.bin/netstat/netstat.1
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)netstat.1 8.8 (Berkeley) 4/18/94
-.\" $Id$
+.\" $Id: netstat.1,v 1.13 1999/07/12 20:23:49 nik Exp $
.\"
.Dd April 18, 1994
.Dt NETSTAT 1
@@ -88,6 +88,11 @@ for debugging.
With the default display,
show the state of all sockets; normally sockets used by
server processes are not shown.
+With the routing table display (option
+.Fl r
+, as described below), 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 +187,9 @@ Show per-protocol statistics.
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.
OpenPOWER on IntegriCloud