Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jul 2001 18:55:52 -0400
From:      Chris Faulhaber <jedgar@fxp.org>
To:        Michael VanLoon <MichaelV@EDIFECS.COM>
Cc:        "'hackers@freebsd.org'" <hackers@freebsd.org>
Subject:   Re: Finding MAC address of interface - programming question
Message-ID:  <20010731185552.A61247@peitho.fxp.org>
In-Reply-To: <36F7B20351634E4FBFFE6C6A216B30D54C7F@ecx1.edifecs.com>
References:  <36F7B20351634E4FBFFE6C6A216B30D54C7F@ecx1.edifecs.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010731185552.A61247>