From owner-freebsd-net@FreeBSD.ORG Mon Mar 15 19:46:00 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 4F6C716A4CE; Mon, 15 Mar 2004 19:46:00 -0800 (PST) Received: from mtaw4.prodigy.net (mtaw4.prodigy.net [64.164.98.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F19843D46; Mon, 15 Mar 2004 19:46:00 -0800 (PST) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (ed2e6dbeda69b5ef8424eff94f7058e4@adsl-67-119-53-203.dsl.lsan03.pacbell.net [67.119.53.203]) by mtaw4.prodigy.net (8.12.10/8.12.10) with ESMTP id i2G3jxVM028578; Mon, 15 Mar 2004 19:45:59 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 008AA51C12; Mon, 15 Mar 2004 19:45:58 -0800 (PST) Date: Mon, 15 Mar 2004 19:45:58 -0800 From: Kris Kennaway To: Marcel Moolenaar Message-ID: <20040316034558.GA35676@xor.obsecurity.org> References: <2650.192.168.0.200.1079393908.squirrel@192.168.0.1> <20040316000544.GA33122@xor.obsecurity.org> <20040316022337.GA44429@ns1.xcllnt.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="azLHFNyN32YCQGCU" Content-Disposition: inline In-Reply-To: <20040316022337.GA44429@ns1.xcllnt.net> User-Agent: Mutt/1.4.2.1i cc: Mike Jakubik cc: net@freebsd.org cc: current@freebsd.org cc: Kris Kennaway 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 03:46:00 -0000 --azLHFNyN32YCQGCU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 15, 2004 at 06:23:37PM -0800, Marcel Moolenaar wrote: > On Mon, Mar 15, 2004 at 04:05:44PM -0800, Kris Kennaway wrote: > > >=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 ha= ve > > > 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. >=20 > Is there a particular reason I don't know about as to why we cannot > introduce a MD typedef for counters like this (or even just "long")? > I mean, if people make the statement that widening counters is not an > option because it slows down some platforms, I must be missing the > reason for it to be an all or none kind of issue. Brooks already mentioned that the counters are already longs, so this is only an issue for 32-bit platforms (i.e. i386). Kris --azLHFNyN32YCQGCU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAVnh2Wry0BWjoQKURAqQFAKCc2wXPo8gdRZJ+xn0klPKiHA8J1ACgyKPI M2tmppVCO/0VcZH0Tw/z7eY= =7aDB -----END PGP SIGNATURE----- --azLHFNyN32YCQGCU--