Subject: bin/3732: Change tcp stats types to quad
To: None <gnats-bugs@gnats.netbsd.org>
From: Heiko W.Rupp <hwr@pilhuhn.de>
List: netbsd-bugs
Date: 06/10/1997 10:20:42
>Number:         3732
>Category:       bin
>Synopsis:       Change tcp stats types to quad
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 10 01:35:00 1997
>Last-Modified:
>Originator:     Heiko W.Rupp
>Organization:
Private
>Release:        1.1
>Environment:
System: NetBSD snert.pilhuhn.de 1.1 NetBSD 1.1 (SNERT+PPP) #11: Thu Jan 30 11:00:49 MET 1997 hwr@snert.pilhuhn.de:/usr/src/sys/arch/i386/compile/SNERT+PPP i386


>Description:
	When doing a netstat -s, many counters about transferred bytes
	are displayed. These are 32bit quantities. With NetBSD being
	stable, it is well possible that a computer sends or receives
	more than 4GB in its livetime (a busy news/web box will get them
	within a week).

>How-To-Repeat:

	$netstat -s -s

	[..]
	tcp:
        9299827 packets sent
                4594962 data packets (2586830728 bytes)
                                      ^^^^^^^^^^
Are these really 2GB or 6GB or ... 

>Fix:

Change all involved counters from u_long to u_quad and also the 
associated printf's
>Audit-Trail:
>Unformatted: