From owner-freebsd-questions@FreeBSD.ORG Fri May 13 18:30:40 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A5C7E16A4CE for ; Fri, 13 May 2005 18:30:40 +0000 (GMT) Received: from smtp-vbr4.xs4all.nl (smtp-vbr4.xs4all.nl [194.109.24.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04B0243D7D for ; Fri, 13 May 2005 18:30:38 +0000 (GMT) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr4.xs4all.nl (8.12.11/8.12.11) with ESMTP id j4DIUadd070067; Fri, 13 May 2005 20:30:36 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 61048650A; Fri, 13 May 2005 20:30:36 +0200 (CEST) Date: Fri, 13 May 2005 20:30:36 +0200 From: Roland Smith To: freebsd-questions@freebsd.org Message-ID: <20050513183036.GC8960@slackbox.xs4all.nl> Mail-Followup-To: freebsd-questions@freebsd.org, Chad Morland References: <8ca9329050512094520970fbc@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WplhKdTI2c8ulnbP" Content-Disposition: inline In-Reply-To: <8ca9329050512094520970fbc@mail.gmail.com> User-Agent: Mutt/1.4.2.1i X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! Organization: Me, organized? X-Virus-Scanned: by XS4ALL Virus Scanner cc: Chad Morland Subject: Re: Network interface counters X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2005 18:30:40 -0000 --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--