From owner-freebsd-bugs Sun Oct 13 14:00:07 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA05698 for bugs-outgoing; Sun, 13 Oct 1996 14:00:07 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA05686; Sun, 13 Oct 1996 14:00:03 -0700 (PDT) Resent-Date: Sun, 13 Oct 1996 14:00:03 -0700 (PDT) Resent-Message-Id: <199610132100.OAA05686@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, Tor.Egge@idt.ntnu.no Received: from pat.idt.unit.no (pat.idt.unit.no [129.241.103.5]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id NAA05632 for ; Sun, 13 Oct 1996 13:59:29 -0700 (PDT) Received: from ikke.idt.unit.no (ikke.idt.unit.no [129.241.111.65]) by pat.idt.unit.no (8.7.5/8.7.3) with ESMTP id WAA16794 for ; Sun, 13 Oct 1996 22:58:30 +0200 (MET DST) Received: (from tegge@localhost) by ikke.idt.unit.no (8.7.6/8.7.3) id WAA14506; Sun, 13 Oct 1996 22:58:29 +0200 (MET DST) Message-Id: <199610132058.WAA14506@ikke.idt.unit.no> Date: Sun, 13 Oct 1996 22:58:29 +0200 (MET DST) From: Tor Egge Reply-To: Tor.Egge@idt.ntnu.no To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: kern/1788: netstat gives negative numbers for tcp bytes transferred Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >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: