Subject: kern/1515: Changing netstat variables to 64 bit
To: None <>
From: None <>
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
>Originator:     Jukka Marin
>Release:        <NetBSD-current source date> all
all ports
System: NetBSD 1.0A NetBSD 1.0A (SILAKKA) #52: Tue Sep 26 12:57:22 EET 1995 amiga

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.
Mode over 4 gigabytes of data over the network.
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
While not a critical problem, I wish this could be fixed before the
upcoming 1.1 release.  Thank you.