This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: SIOCGIFCONF but not SIOCGIFHWADDR


'arp -a' from DOS prompt or bash gives you the MAC address. But I don't know
the Windows API functions behind 'arp'.

Hope this helps.

Karsten

> -----Original Message-----
> From: bert@mail.svi.nl [mailto:bert@mail.svi.nl]
> Sent: Freitag, 9. März 2001 13:39
> To: cygwin@cygwin.com
> Subject: Re: SIOCGIFCONF but not SIOCGIFHWADDR
> 
> 
> If only I knew how to retrieve that information from Windows.
> I did look at the Cygwin source for SIOCGIFCONF, which searches
> the registry for the IP adress + mask.  But in the registry
> I was unable to find the MAC address.  So how to retrieve
> that information from Windows using whatever Windows API calls?
> 
> Bert
> 
> On Fri, Mar 09, 2001 at 08:31:58AM -0500, Earnie Boyd wrote:
> > bert@mail.svi.nl wrote:
> > > 
> > > Cygwin supports ioctl(SIOCGIFCONF) just fine, which is great!, but
> > > ioctl(SIOCGIFHWADDR) does not seem to be supported as of 
> SIOCGIFHWADDR.
> > > As I need to find out the Ethernet hardware address is 
> there another way
> > > to get this information?
> > > 
> > 
> > You could download the Cygwin source, add the support you need and
> > submit a patch for consideration to cygwin-patches@cygwin.com
> > 
> > Earnie.
> > 
> > P.S.:  See http://cygwin.com/cvs.html for how to get the CVS source.
> > 
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> > 
> 
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple
> 
> 


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]