From hwr@blackbush.xlink.net  Thu Oct 19 04:37:49 1995
Received: from blackbush.xlink.net (blackbush.xlink.net [193.141.40.8])
          by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id EAA18718
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 19 Oct 1995 04:37:33 -0700
Received: (from hwr@localhost) by blackbush.xlink.net (8.6.11/8.6.9) id MAA24637; Thu, 19 Oct 1995 12:37:25 +0100
Message-Id: <199510191137.MAA24637@blackbush.xlink.net>
Date: Thu, 19 Oct 1995 12:37:25 +0100
From: hwr@xlink.net
Reply-To: hwr@xlink.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: Netstat -b reporting negative bytecount
X-Send-Pr-Version: 3.2

>Number:         787
>Category:       misc
>Synopsis:       netstat -b reports negative bytes counts.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 19 04:40:01 PDT 1995
>Closed-Date:    Sat Nov 11 09:45:10 PST 1995
>Last-Modified:  Sat Nov 11 09:49:35 PST 1995
>Originator:     Heiko W. Rupp
>Release:        FreeBSD 2.0.5 -BUILT-19950603 i386
>Organization:
NTG/Xlink, Karlsruhe, Germany
>Environment:

	

>Description:

blackbush# netstat -b 10
     input             (lp0)             output                 input            (Total)            output
 packets  errs      bytes  packets  errs      bytes colls   packets  errs      bytes  packets  errs      bytes colls
       0     0          0        0     0          0     0  11138037    12 1650625075 10961566     1 -211906830     0


>How-To-Repeat:

Just transfer more than 2GB on an interface and do netstat -b afterwards.


>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: davidg 
State-Changed-When: Sat Nov 11 09:45:10 PST 1995 
State-Changed-Why:  
This bug was caused by the counters being output as signed rather 
than unsigned. Fixed in rev 1.4 of netstat/if.c. 
>Unformatted:
