Re: Network interface counters

2005-05-13 Thread Roland Smith
On Thu, May 12, 2005 at 12:45:18PM -0400, Chad Morland wrote:
 I was wondering if there is a FreeBSD equivalent to /proc/net/dev from
 Linux. I am trying to get bit and packet counter info from my network
 devices.

Try getifaddrs(3). For every interface, the data you want is found in
the ifa_data member of the struct ifaddrs.

Roland
-- 
R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text.
public key: http://www.xs4all.nl/~rsmith/pubkey.txt


pgpsfh7TrlGz2.pgp
Description: PGP signature


Network interface counters

2005-05-12 Thread Chad Morland
I was wondering if there is a FreeBSD equivalent to /proc/net/dev from
Linux. I am trying to get bit and packet counter info from my network
devices.

-CM
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Network interface counters

2005-05-12 Thread Charles Swiger
On May 12, 2005, at 12:45 PM, Chad Morland wrote:
I was wondering if there is a FreeBSD equivalent to /proc/net/dev from
Linux. I am trying to get bit and packet counter info from my network
devices.
I would use the counters built into IPFW for this purpose, as you can 
configure rules or pipes to match any subset of traffic you care 
about...

--
-Chuck
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Network interface counters

2005-05-12 Thread Xian
On Thursday 12 May 2005 17:57, Charles Swiger wrote:
 On May 12, 2005, at 12:45 PM, Chad Morland wrote:
  I was wondering if there is a FreeBSD equivalent to /proc/net/dev from
  Linux. I am trying to get bit and packet counter info from my network
  devices.

 I would use the counters built into IPFW for this purpose, as you can
 configure rules or pipes to match any subset of traffic you care
 about...

netstat -s might be usefull.

-- 
/Xian

TEAMWORK... means never having to take all the blame yourself
unknown author
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]