NetBSD Problem Report #1515

From gnats  Tue Sep 26 07:58:05 1995
Received: from salakka.jmp.fi (root@salakka.jmp.fi [193.185.236.3]) by sun-lamp.pc.cs.cmu.edu (8.6.11/8.6.10) with ESMTP id HAA13328 for <gnats-bugs@gnats.netbsd.org>; Tue, 26 Sep 1995 07:57:51 -0400
Message-Id: <199509261157.NAA00405@salakka.jmp.fi>
Date: Tue, 26 Sep 1995 13:57:21 +0200
From: jmarin@salakka.jmp.fi
Reply-To: jmarin@salakka.jmp.fi
To: gnats-bugs@gnats.netbsd.org
Subject: Changing netstat variables to 64 bit
X-Send-Pr-Version: 3.2

>Number:         1515
>Category:       kern
>Synopsis:       Netstat variables wrap around with lots of network activity
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bouyer
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 26 08:05:00 +0000 1995
>Closed-Date:    Fri Nov 19 12:09:36 +0000 1999
>Last-Modified:  Fri Nov 19 12:10:14 +0000 1999
>Originator:     Jukka Marin
>Release:        <NetBSD-current source date> all
>Organization:
JMP-Electronics
>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.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: kern-bug-people->bouyer 
Responsible-Changed-By: bouyer 
Responsible-Changed-When: Fri Oct 29 12:29:48 PDT 1999 
Responsible-Changed-Why:  
I'm looking at this. 
State-Changed-From-To: open->closed 
State-Changed-By: bouyer 
State-Changed-When: Fri Nov 19 04:09:36 PST 1999 
State-Changed-Why:  
I just bumped the counters to 64bits. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.