Honor -s -s (don't show zero stats) with -r, untangle SYNOPSIS further.
(usage() still is not synchronized with SYNOPSIS, intentionally.)
This commit is contained in:
parent
c39435223d
commit
aafccd6d93
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78659
@ -45,7 +45,7 @@
|
|||||||
.Op Fl M Ar core
|
.Op Fl M Ar core
|
||||||
.Op Fl N Ar system
|
.Op Fl N Ar system
|
||||||
.Nm
|
.Nm
|
||||||
.Op Fl gilnrsS
|
.Op Fl gilnsS
|
||||||
.Op Fl f Ar address_family
|
.Op Fl f Ar address_family
|
||||||
.Op Fl M Ar core
|
.Op Fl M Ar core
|
||||||
.Op Fl N Ar system
|
.Op Fl N Ar system
|
||||||
@ -69,6 +69,17 @@
|
|||||||
.Fl m
|
.Fl m
|
||||||
.Op Fl M Ar core
|
.Op Fl M Ar core
|
||||||
.Op Fl N Ar system
|
.Op Fl N Ar system
|
||||||
|
.Nm
|
||||||
|
.Fl r
|
||||||
|
.Op Fl Aaln
|
||||||
|
.Op Fl f Ar address_family
|
||||||
|
.Op Fl M Ar core
|
||||||
|
.Op Fl N Ar system
|
||||||
|
.Nm
|
||||||
|
.Fl rs
|
||||||
|
.Op Fl s
|
||||||
|
.Op Fl M Ar core
|
||||||
|
.Op Fl N Ar system
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
The
|
The
|
||||||
.Nm
|
.Nm
|
||||||
@ -87,12 +98,14 @@ interval specified,
|
|||||||
will continuously display the information regarding packet
|
will continuously display the information regarding packet
|
||||||
traffic on the configured network interfaces.
|
traffic on the configured network interfaces.
|
||||||
The fourth form displays statistics for
|
The fourth form displays statistics for
|
||||||
the specified protocol or address familily.
|
the specified protocol or address family.
|
||||||
The fifth form displays per-interface statistics for
|
The fifth form displays per-interface statistics for
|
||||||
the specified protocol or address family.
|
the specified protocol or address family.
|
||||||
The sixth form displays
|
The sixth form displays
|
||||||
.Xr mbuf 9
|
.Xr mbuf 9
|
||||||
statistics.
|
statistics.
|
||||||
|
The seventh form displays routing table for the specified address family.
|
||||||
|
The eighth form displays routing statistics.
|
||||||
.Pp
|
.Pp
|
||||||
The options have the following meaning:
|
The options have the following meaning:
|
||||||
.Bl -tag -width flag
|
.Bl -tag -width flag
|
||||||
|
@ -866,16 +866,16 @@ rt_stats(u_long off)
|
|||||||
}
|
}
|
||||||
kread(off, (char *)&rtstat, sizeof (rtstat));
|
kread(off, (char *)&rtstat, sizeof (rtstat));
|
||||||
printf("routing:\n");
|
printf("routing:\n");
|
||||||
printf("\t%u bad routing redirect%s\n",
|
|
||||||
rtstat.rts_badredirect, plural(rtstat.rts_badredirect));
|
#define p(f, m) if (rtstat.f || sflag <= 1) \
|
||||||
printf("\t%u dynamically created route%s\n",
|
printf(m, rtstat.f, plural(rtstat.f))
|
||||||
rtstat.rts_dynamic, plural(rtstat.rts_dynamic));
|
|
||||||
printf("\t%u new gateway%s due to redirects\n",
|
p(rts_badredirect, "\t%u bad routing redirect%s\n");
|
||||||
rtstat.rts_newgateway, plural(rtstat.rts_newgateway));
|
p(rts_dynamic, "\t%u dynamically created route%s\n");
|
||||||
printf("\t%u destination%s found unreachable\n",
|
p(rts_newgateway, "\t%u new gateway%s due to redirects\n");
|
||||||
rtstat.rts_unreach, plural(rtstat.rts_unreach));
|
p(rts_unreach, "\t%u destination%s found unreachable\n");
|
||||||
printf("\t%u use%s of a wildcard route\n",
|
p(rts_wildcard, "\t%u use%s of a wildcard route\n");
|
||||||
rtstat.rts_wildcard, plural(rtstat.rts_wildcard));
|
#undef p
|
||||||
}
|
}
|
||||||
|
|
||||||
char *
|
char *
|
||||||
|
Loading…
Reference in New Issue
Block a user