From owner-freebsd-hackers Tue Jul 31 15:56: 1 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from peitho.fxp.org (peitho.fxp.org [209.26.95.40]) by hub.freebsd.org (Postfix) with ESMTP id 4358137B403 for ; Tue, 31 Jul 2001 15:55:53 -0700 (PDT) (envelope-from cdf.lists@fxp.org) Received: by peitho.fxp.org (Postfix, from userid 1501) id B53ED13618; Tue, 31 Jul 2001 18:55:52 -0400 (EDT) Date: Tue, 31 Jul 2001 18:55:52 -0400 From: Chris Faulhaber To: Michael VanLoon Cc: "'hackers@freebsd.org'" Subject: Re: Finding MAC address of interface - programming question Message-ID: <20010731185552.A61247@peitho.fxp.org> References: <36F7B20351634E4FBFFE6C6A216B30D54C7F@ecx1.edifecs.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="azLHFNyN32YCQGCU" Content-Disposition: inline In-Reply-To: <36F7B20351634E4FBFFE6C6A216B30D54C7F@ecx1.edifecs.com> User-Agent: Mutt/1.3.20i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --azLHFNyN32YCQGCU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 31, 2001 at 03:56:40PM -0700, Michael VanLoon wrote: > Please point me to a more appropriate forum if there is one. I'm kinda o= ut > of my depth on this question. Pseudo code is fine. :-) >=20 > What I'm looking for is how to enumerate the network interfaces and get t= he > Ethernet MAC address of one programmatically. Can anyone point me in the > right direction? >=20 /usr/src/sbin/ifconfig --=20 Chris D. Faulhaber - jedgar@fxp.org - jedgar@FreeBSD.org -------------------------------------------------------- FreeBSD: The Power To Serve - http://www.FreeBSD.org --azLHFNyN32YCQGCU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: FreeBSD: The Power To Serve iEYEARECAAYFAjtnN3gACgkQObaG4P6BelAc6wCePgdeyZdr5Q37i3Zwex4hdWzQ daYAn1qobTPMW2k5W1l+kGbC2pVaHq45 =RBMv -----END PGP SIGNATURE----- --azLHFNyN32YCQGCU-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message