summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pppstats/pppstats.8
blob: 62321bc843b7fcb8ad3e1a7844c9820a0924653e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
.\"	@(#) $FreeBSD$
.Dd May 2, 1995
.Dt PPPSTATS 8
.Sh NAME
.Nm pppstats
.Nd print PPP statistics
.Sh SYNOPSIS
.Nm
.Op Fl v
.Op Fl r
.Op Fl c
.Op Fl i Ar secs
.Op Ar unit#
.Sh DESCRIPTION
.Nm pppstats
prints PPP-related statistics.
.Pp
The
.Fl v
flag causes
.Nm
to display additional statistics, such as the number of packets tossed
(that is, which the VJ TCP header decompression code rejected).
.Pp
The
.Fl r
flag causes
.Nm
to display the overall packet compression rate.  The rate value is
between 0 and 1, with 0 meaning that the data is incompressible.
.Pp
The
.Fl c
flag is used to specify an alternate display mode that shows
packet compression statistics: the number of packets and bytes
uncompressed (that is, before compression or after decompression),
compressed, and incompressible (packets which did not shrink on
compression and were transmitted uncompressed), and the recent
compression rate.  This rate reflects the recent performance of the
compression code rather than the overall rate achieved since
compression was enabled.
.Pp
The
.Fl i
flag is used to specify the interval between printouts. The default is
5 seconds.
.Pp
.Ar unit#
specifies which interface to use for gathering statistics.
.Sh SEE ALSO
.Xr pppd 8
OpenPOWER on IntegriCloud