From nobody@FreeBSD.org Tue Aug 27 07:05:04 2002 Return-Path: Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C92E737B400 for ; Tue, 27 Aug 2002 07:05:04 -0700 (PDT) Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8CB4D43E7B for ; Tue, 27 Aug 2002 07:05:04 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g7RE54OT070355 for ; Tue, 27 Aug 2002 07:05:04 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.4/8.12.4/Submit) id g7RE54eg070354; Tue, 27 Aug 2002 07:05:04 -0700 (PDT) Message-Id: <200208271405.g7RE54eg070354@www.freebsd.org> Date: Tue, 27 Aug 2002 07:05:04 -0700 (PDT) From: Mark Rekai To: freebsd-gnats-submit@FreeBSD.org Subject: PicoBSD's 'netstat -i' reports negative Ipkts count. X-Send-Pr-Version: www-1.0 >Number: 42084 >Category: bin >Synopsis: [picobsd] PicoBSD's 'netstat -i' reports negative Ipkts count. >Confidential: no >Severity: non-critical >Priority: low >Responsible: luigi >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Aug 27 07:10:05 PDT 2002 >Closed-Date: >Last-Modified: Thu Oct 27 22:47:07 GMT 2005 >Originator: Mark Rekai >Release: PicoBSD 4.6.2 >Organization: >Environment: >Description: 'netstat -i' counters on PicoBSD's tinyware ns / netstat are displayed as signed with a %d in printf function. High counter values are displayed as negative. The incorrectly displayed data ultimately comes from an if_data struct (net/if.h). Variables decalred in this structure that are incorrectly displayed by tinyware ns / netstat are all unsigned. Easy to see the problem with looking at printfs in ns.c from tinyware ns and comparing the way the printed data is declared in the if.h header. >How-To-Repeat: Try it on a box with lots of lots of traffic. >Fix: printf with %lu instead. >Release-Note: >Audit-Trail: Responsible-Changed-From-To: freebsd-bugs->luigi Responsible-Changed-By: luigi Responsible-Changed-When: Sun Sep 22 12:35:37 PDT 2002 Responsible-Changed-Why: i will handle this http://www.freebsd.org/cgi/query-pr.cgi?pr=42084 >Unformatted: