From owner-freebsd-hackers Tue Jun 18 10: 2:49 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id B732437B400 for ; Tue, 18 Jun 2002 10:02:43 -0700 (PDT) Received: from fledge.watson.org (fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.12.3/8.12.3) with SMTP id g5IH22b5030676; Tue, 18 Jun 2002 13:02:02 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Tue, 18 Jun 2002 13:02:01 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: "Kevin D. Wooten" Cc: freebsd-hackers@freebsd.org Subject: Re: Retrieving interface MAC address In-Reply-To: <3D0F66EA.1000003@wooten.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 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