Subject: bin/1456: pppstats(1) gives bogus `NON-VJ' values.
To: None <>
From: None <>
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
>Originator:     matthew green
bozotic softwar foundation
>Release:        26 august.
System: NetBSD 1.0A NetBSD 1.0A (_splode_) #249: Sun Sep 10 22:16:21 EST 1995 sparc


	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(p.ppp_ipackets) -
				V(vj.vjs_compressedin) -
				V(vj.vjs_uncompressedin) -

	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.


	pppstats -v and watch.
	none yet.