Re: Which file to request SIOCGIFMAC on?

2007-02-21 Thread nocturnal
Hi Well that's weird, is MAC defined by default at all? I tried searching for the definition but couldn't find it. I never thought it would be this hard just to get the ethernet address from an ethernet interface in FreeBSD. I think i'll take a look at the netlib source next, something

Re: Which file to request SIOCGIFMAC on?

2007-02-21 Thread Don Hinton
On Wednesday 21 February 2007 15:03, nocturnal wrote: Hi Well that's weird, is MAC defined by default at all? I tried searching for the definition but couldn't find it. I never thought it would be this hard just to get the ethernet address from an ethernet interface in FreeBSD. I think i'll

Re: Which file to request SIOCGIFMAC on?

2007-02-20 Thread Chuck Swiger
On Feb 20, 2007, at 1:10 PM, nocturnal wrote: I'm trying to get the ethernet address and from the manuals i understand that i need the ifreq structure for this. So i'm trying to request SIOCGIFMAC with ioctl on a socket of type SOCK_DGRAM. If you're just targetting FreeBSD = 5.x platforms,

Re: Which file to request SIOCGIFMAC on?

2007-02-20 Thread nocturnal
Hi The original plan is to only run it on FreeBSD 5 and higher, actually only 6 by now. It's a program i'm writing for work and at work the most active servers run FreeBSD 6 and are updated frequently. The ones with older versions don't run anything of interest. I am buying a MacBook for

Re: Which file to request SIOCGIFMAC on?

2007-02-20 Thread Chuck Swiger
On Feb 20, 2007, at 2:33 PM, nocturnal wrote: [ ...looking up one's MAC address... ] I am buying a MacBook for personal use though so it would be nice to run it on osx. I wouldn't like to start using another library just to get the hardware address of an interface though, that seems kinda

Re: Which file to request SIOCGIFMAC on?

2007-02-20 Thread Pietro Cerutti
On 2/20/07, nocturnal [EMAIL PROTECTED] wrote: Hi The original plan is to only run it on FreeBSD 5 and higher, actually only 6 by now. It's a program i'm writing for work and at work the most active servers run FreeBSD 6 and are updated frequently. The ones with older versions don't run