Date: Fri, 13 May 2005 20:30:36 +0200 From: Roland Smith <rsmith@xs4all.nl> To: freebsd-questions@freebsd.org Cc: Chad Morland <cmorland@gmail.com> Subject: Re: Network interface counters Message-ID: <20050513183036.GC8960@slackbox.xs4all.nl> In-Reply-To: <8ca9329050512094520970fbc@mail.gmail.com> References: <8ca9329050512094520970fbc@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--WplhKdTI2c8ulnbP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 --=20 R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text. public key: http://www.xs4all.nl/~rsmith/pubkey.txt --WplhKdTI2c8ulnbP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFChPJMEnfvsMMhpyURAn5oAJ436BaFmqwUZxndCMaEsnK/bHDnUQCfRKmo utOm+V0iq17xT6qTtDhpjGM= =jnsN -----END PGP SIGNATURE----- --WplhKdTI2c8ulnbP--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050513183036.GC8960>