From owner-freebsd-bugs Thu Feb 20 09:40:52 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA25776 for bugs-outgoing; Thu, 20 Feb 1997 09:40:52 -0800 (PST) Received: from halloran-eldar.lcs.mit.edu (halloran-eldar.lcs.mit.edu [18.26.0.159]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id JAA25771 for ; Thu, 20 Feb 1997 09:40:49 -0800 (PST) Received: by halloran-eldar.lcs.mit.edu; (5.65v3.2/1.1.8.2/19Aug95-0530PM) id AA09784; Thu, 20 Feb 1997 12:40:02 -0500 Date: Thu, 20 Feb 1997 12:40:02 -0500 From: Garrett Wollman Message-Id: <9702201740.AA09784@halloran-eldar.lcs.mit.edu> To: elh@astroarch.com Cc: freebsd-bugs@freebsd.org, elh@secretariat.astroarch.com Subject: SIOCGIFPHYS In-Reply-To: <199702200236.UAA09387@secretariat.astroarch.com> References: <199702200236.UAA09387@secretariat.astroarch.com> Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk < I am in need of code that can query the physical hardware address of > an ethernet. I have written the following code but it is to no > avail. SIOCGIFPHYS does not get the hardware address. In fact, it does not do anything at all. It was intended to get the currently-selected medium, but this was never implemented by any of the driver writers. You should use SIOCGIFCONF and look for addresses in the AF_LINK family where the sdl_type member (of struct sockaddr_dl, defined in ) is IFT_ETHER. -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, ANA, or NSA| - Susan Aglukark and Chad Irschick