Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Oct 1996 22:58:29 +0200 (MET DST)
From:      Tor Egge <Tor.Egge@idt.ntnu.no>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/1788: netstat gives negative numbers for tcp bytes transferred
Message-ID:  <199610132058.WAA14506@ikke.idt.unit.no>
Resent-Message-ID: <199610132100.OAA05686@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         1788
>Category:       kern
>Synopsis:       netstat gives negative numbers for tcp bytes transferred
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 13 14:00:02 PDT 1996
>Last-Modified:
>Originator:     Tor Egge
>Organization:
Norwegian University of Science and Technology, Trondheim, Norway

>Release:        FreeBSD 2.2-CURRENT i386
>Environment:

	FreeBSD skarven.itea.ntnu.no 2.2-CURRENT FreeBSD 2.2-CURRENT #0: Fri Oct 11 23:58:42  1996     root@skarven.itea.ntnu.no:/usr/src/sys/compile/SKARVEN  i386


>Description:

	Currently 32 bits variables are used to collect tcp statistics.
	With some network load (6 GB/day outgoing HTTP traffic/day),
	the number of tcp bytes transferred as shown by netstat becomes
	negative after 8 hours uptime.

>How-To-Repeat:

	Run netstat -s on a machine that has been up with some network
	load for some time.

>Fix:
	Use 64 bits integers for some of the numbers, e.g. packet 
	and byte counters, and modify netstat to use %qd instead of %ld
        in the corresponding format argument to printf.

>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610132058.WAA14506>