Network interface counters

Roland Smith rsmith at xs4all.nl
Fri May 13 11:30:40 PDT 2005


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050513/a73c7c93/attachment.bin


More information about the freebsd-questions mailing list