diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c index b1ada41482c5..0f3072ef3bd9 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 @@ -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 dd471968ff87..22b3a5d0619d 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.