Subject: Re: network byte transfer stats
To: Jim Reid <jim@mpn.cp.philips.com>
From: Herb Peyerl <hpeyerl@beer.org>
List: tech-kern
Date: 10/23/1997 06:04:12
Jim Reid <jim@mpn.cp.philips.com>  wrote:
 > >>>>> "Ross" == Ross Harvey <ross@teraflop.com> writes:
 >     Ross> Digital Unix keeps track of the byte counts transferred in
 >     Ross> each direction on network interfaces. I can't find anyplace
 >     Ross> in netbsd or any other system where this info is available.
 > The closest thing most (all?) UNIX systems will have to this is the
 > per packet counts in the ifnet structure of each network interface.
 > Some - like FreeBSD and BSDI - do keep byte counts as well, but I
 > suppose you have to fish around in /dev/kmem to get them.

err, I use:

/etc/ipf.conf:
		count in on ep0 from any to any
		count out on ep0 from any to any

Or something to that effect and then retrieve the data with ipfstat...

You might be able to put that to some use...