Subject: bin/1456: pppstats(1) gives bogus `NON-VJ' values.
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mrg@eterna.com.au>
List: netbsd-bugs
Date: 09/12/1995 19:44:57
>Number: 1456
>Category: bin
>Synopsis: pppstats(1) gives bogus `NON-VJ' values.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Sep 12 05:50:02 1995
>Last-Modified:
>Originator: matthew green
>Organization:
bozotic softwar foundation
>Release: 26 august.
>Environment:
System: NetBSD splode.eterna.com.au 1.0A NetBSD 1.0A (_splode_) #249: Sun Sep 10 22:16:21 EST 1995 mrg@splode.eterna.com.au:/orb/q/build/src/sys/arch/sparc/compile/_splode_ sparc
>Description:
pppstats -v gives NON-VJ statistics. occasionally, i've seen it report
values of 2^32-1. the code in question from pppstats.c:
if (vflag)
printf(" %6u %6u",
V(vj.vjs_tossed),
V(p.ppp_ipackets) -
V(vj.vjs_compressedin) -
V(vj.vjs_uncompressedin) -
V(vj.vjs_errorin));
i've put a debugging printf() in the pppstats.c and it shows that the
p.ppp_ippackets is less than the combation of the other three, which
explains why it's underflowing.
>How-To-Repeat:
pppstats -v and watch.
>Fix:
none yet.
>Audit-Trail:
>Unformatted: