Subject: kern/1515: Changing netstat variables to 64 bit
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jmarin@salakka.jmp.fi>
List: netbsd-bugs
Date: 09/26/1995 13:57:21
>Number:         1515
>Category:       kern
>Synopsis:       Netstat variables wrap around with lots of network activity
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 26 08:05:00 1995
>Last-Modified:
>Originator:     Jukka Marin
>Organization:
JMP-Electronics
>Release:        <NetBSD-current source date> all
>Environment:
all ports
	
System: NetBSD silakka.jmp.fi 1.0A NetBSD 1.0A (SILAKKA) #52: Tue Sep 26 12:57:22 EET 1995 jmarin@silakka.jmp.fi:/local/src/sys/arch/amiga/compile/SILAKKA amiga


>Description:
On systems with lots of network traffic, the network byte counters wrap
around quite easily.  The counter are now 32 bits wide while my humble
opinion is that they should be made 64 bits wide.
I have seen 'netstat -p tcp' report wrong byte counts after the counters
have wrapped.  The packet counters should be changed as well.
>How-To-Repeat:
Mode over 4 gigabytes of data over the network.
>Fix:
Change the counter types to long long.  I haven't examined the kernel and
other things to see how difficult this would be (afraid of breaking
something).
While not a critical problem, I wish this could be fixed before the
upcoming 1.1 release.  Thank you.

>Audit-Trail:
>Unformatted: