From owner-freebsd-net@FreeBSD.ORG Mon Mar 15 16:20:45 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3BFA616A4CE; Mon, 15 Mar 2004 16:20:45 -0800 (PST) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1FB8D43D2D; Mon, 15 Mar 2004 16:20:45 -0800 (PST) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (IDENT:brdavis@localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.12.10/8.12.3) with ESMTP id i2G0KgZa001796; Mon, 15 Mar 2004 16:20:42 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.10/8.12.3/Submit) id i2G0KflL001795; Mon, 15 Mar 2004 16:20:41 -0800 Date: Mon, 15 Mar 2004 16:20:41 -0800 From: Brooks Davis To: Kris Kennaway Message-ID: <20040316002041.GA1630@Odin.AC.HMC.Edu> References: <2650.192.168.0.200.1079393908.squirrel@192.168.0.1> <20040316000544.GA33122@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gKMricLos+KVdGMg" Content-Disposition: inline In-Reply-To: <20040316000544.GA33122@xor.obsecurity.org> User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-milter (http://amavis.org/) on odin.ac.hmc.edu cc: Mike Jakubik cc: current@freebsd.org cc: net@freebsd.org Subject: Re: Byte counters reset at ~4GB X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Mar 2004 00:20:45 -0000 --gKMricLos+KVdGMg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 15, 2004 at 04:05:44PM -0800, Kris Kennaway wrote: > On Mon, Mar 15, 2004 at 06:38:28PM -0500, Mike Jakubik wrote: > > Hello, > >=20 > > It seems that the byte counters (derived from netstat -nbi) reset at > > around 4 GB. Is there no way around this? It would be nice to be able to > > see an accurate display of totals. It just seems pointless to even have > > this, as 4 GB is just not that much anymore. I know this is a 32bit > > limitation of the variable, but that's just bad coding in my opinion (no > > offence intended), I mean there must be some way around this. >=20 > I think in the past it's been pointed out changing to a 64-bit > variable would slow down the code on non-64-bit architectures like the > venerable i386. It's worth noting that the counters are unsigned longs so 64-bit architetures have proper 64-bit counters. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --gKMricLos+KVdGMg Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFAVkhZXY6L6fI4GtQRAs04AJ0X3sA5KrCrbxvY18/AHs2xoGCmUwCg1kBs eNX3qSOVCSlne6sk1kX+xi8= =8/z0 -----END PGP SIGNATURE----- --gKMricLos+KVdGMg--