From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 6 02:48:50 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5388637B401 for ; Fri, 6 Jun 2003 02:48:50 -0700 (PDT) Received: from relay.macomnet.ru (relay.macomnet.ru [195.128.64.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id D5E5243F93 for ; Fri, 6 Jun 2003 02:48:46 -0700 (PDT) (envelope-from maxim@macomnet.ru) Received: from news1.macomnet.ru (news1.macomnet.ru [195.128.64.14]) by relay.macomnet.ru (8.11.6/8.11.6) with ESMTP id h569mhg7008247; Fri, 6 Jun 2003 13:48:43 +0400 (MSD) Date: Fri, 6 Jun 2003 13:48:43 +0400 (MSD) From: Maxim Konovalov To: Bogdan TARU In-Reply-To: <20030606111519.D82842-100000@fw.office.icom> Message-ID: <20030606134708.J6293@news1.macomnet.ru> References: <20030606111519.D82842-100000@fw.office.icom> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org Subject: Re: netstat -s output X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jun 2003 09:48:50 -0000 On Fri, 6 Jun 2003, 11:19+0200, Bogdan TARU wrote: > > > Hi hackers, > > I have tried to find out the amount of traffic that one box sent (from > the last reboot), and netstat -s seemed like a good choice. But netstat -s > seems to generate incorrect results: > > tcp: > 1730547260 packets sent > 1325234728 data packets (1119813018 bytes) > 28496801 data packets (151887376 bytes) retransmitted > > This box generated a lot more than ~12Gb of tcp traffic since the last > reboot. And I have not messed up with interfaces (up, down, whatever) OR > with netstat -z in all this time. Any idea what could be wrong? Are the > counters resetted sometimes, or they wrap sometimes, or...? They wrap at 2^32. -- Maxim Konovalov, maxim@macomnet.ru, maxim@FreeBSD.org