Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jun 2002 13:02:01 -0400 (EDT)
From:      Robert Watson <rwatson@freebsd.org>
To:        "Kevin D. Wooten" <kevin@wooten.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Retrieving interface MAC address
Message-ID:  <Pine.NEB.3.96L.1020618130127.30505C-100000@fledge.watson.org>
In-Reply-To: <3D0F66EA.1000003@wooten.com>

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

I tend to retrieve address information about interfaces using
getifaddrs(), which will (among other things) retrieve the link layer
addresses of an interface.  It might be overkill for your application,
however.

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org      Network Associates Laboratories

On Tue, 18 Jun 2002, Kevin D. Wooten wrote:

> How can I go about retrieving the MAC address for an interface? Since 
> SIOCGHWADDR doesn't seem to be implemented. Can anyone help??
> 
> Thanks,
> Kevin Wooten
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-hackers" in the body of the message
> 


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?Pine.NEB.3.96L.1020618130127.30505C-100000>