[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: network stats
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: network stats
- From: Claudio Jeker <cjeker_(_at_)_diehard_(_dot_)_n-r-g_(_dot_)_com>
- Date: Wed, 10 Nov 2004 09:04:20 +0100
- Mail-followup-to: Claudio Jeker <cjeker_(_at_)_diehard_(_dot_)_n-r-g_(_dot_)_com>, misc_(_at_)_openbsd_(_dot_)_org
On Wed, Nov 10, 2004 at 05:14:44PM +1300, Antonio Broughton wrote:
> Hi,
>
> Dunno if this is the correct place to put this, but here goes...
>
> Just wondering if there is a better place to grab statistical
> information from network interfaces rather than using the if_data struct
> as defined within net/if.h ...
>
> I ask this because I notice that ifi_ipackets is, ifi_opackets are both
> defined as unsigned 32bit numbers... which means that a maximum value
> each can have is ~4294967295 ...
>
> Is there a way to get the _real_ inpacket/opacket information? as
> ifi_ipackets will just reset back to 0 when reaching over 4294967295?
>
Read the counters more often, use the counters in pf those are
64bit and should not wrap anytime soon or use a 64bit arch.
--
:wq Claudio
Visit your host, monkey.org