From owner-freebsd-hackers Tue Jul 31 16: 6:46 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from postal.edifecs.com (unknown [207.149.212.48]) by hub.freebsd.org (Postfix) with ESMTP id BD21A37B401 for ; Tue, 31 Jul 2001 16:06:42 -0700 (PDT) (envelope-from MichaelV@EDIFECS.COM) Received: from ecx1.edifecs.com (mail.edifecs.com [207.153.149.131]) by postal.edifecs.com (8.11.0/8.11.0) with ESMTP id f6VNEbT17070; Tue, 31 Jul 2001 16:14:38 -0700 Received: by ecx1.edifecs.com with Internet Mail Service (5.5.2653.19) id ; Tue, 31 Jul 2001 16:12:35 -0700 Message-ID: <36F7B20351634E4FBFFE6C6A216B30D54C80@ecx1.edifecs.com> From: Michael VanLoon To: "'Chris Faulhaber'" Cc: "'hackers@freebsd.org'" Subject: RE: Finding MAC address of interface - programming question Date: Tue, 31 Jul 2001 16:12:31 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" 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 > From: Chris Faulhaber [mailto:jedgar@fxp.org] > Sent: Tuesday, July 31, 2001 3:56 PM > > 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 out > > of my depth on this question. Pseudo code is fine. :-) > > > > What I'm looking for is how to enumerate the network > interfaces and get the > > Ethernet MAC address of one programmatically. Can anyone > point me in the > > right direction? > > > > /usr/src/sbin/ifconfig Thanks, I've already been looking at that. :-) The problem is, ifconfig does a lot of other stuff, and it's very poorly documented. I was hoping someone could give me some hints to speed my research. Such as recommended places to look in the code, ioctl's used and/or sysctl's called. I'm happy to do most of the work myself, I'm just asking for some hints. :-) Much appreciated. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message