Michael VanLoon wrote:
> 
> > From: Chris Faulhaber [mailto:[EMAIL PROTECTED]]
> > 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.

Take a look at /usr/src/release/picobsd/tinyware/ns. I went through the
same hoops some time ago... :-)

-- 

Andrzej

// ----------------------------------------------------------------
// Andrzej Bialecki <[EMAIL PROTECTED]>, Chief System Architect
// WebGiro AB, Sweden (http://www.webgiro.com)
// ----------------------------------------------------------------
// <[EMAIL PROTECTED]> FreeBSD developer (http://www.freebsd.org)

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to