Skip site navigation (1)Skip section navigation (2)
Date:      23 Jun 2003 17:05:16 -0400
From:      Lowell Gilbert <freebsd-questions-local@be-well.no-ip.com>
To:        Andrew Thomson <ajthomson@optushome.com.au>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: data contained in ipfw show
Message-ID:  <44n0g8bj3n.fsf@be-well.ilk.org>
In-Reply-To: <20030622225115.GC4006@athomson.prv.au.itouchnet.net>
References:  <20030622225115.GC4006@athomson.prv.au.itouchnet.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Andrew Thomson <ajthomson@optushome.com.au> writes:

> what's the max bytes ipfw show will record?
> 
> 00010     422     44684 count ip from any to any out xmit tun0
> 00020     509     42556 count ip from any to any in recv tun0
> 
> i dump and zero them on the hour atm but just curious.

A quick look at the source shows that they're 64-bit unsigned
counters, so (according to an equally quick back-of-the-envelope
calculation) each packet counter should be able to handle a few
dozen centuries' worth of the largest possible throughput of a
gigabit Ethernet.  The byte counters, obviously, are good for a lot
less; around half a century is the limit.

> also, /(1024*1024.0) would give me my mb yeah??

Right.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44n0g8bj3n.fsf>