This is the mail archive of the cygwin@sourceware.cygnus.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: Ethernet address


Bertrand Bourdon wrote:
> 
> How can I get the address of the card network under Windows NT and
> compile the program under   cygwin?

	struct ifreq ifr[COUNT_OF_NICS + 1];
	struct ifconf ifc;

	ifc.ifc_len = sizeof ifr;
	ifc.ifc_req = ifr;
	if (!ioctl (some_socket_fd, SIOCGIFCONF, &ifc))

	  etc as in UNIX.

Corinna

-- 
Corinna Vinschen
Cygwin Developer
Cygnus Solutions, a Red Hat company

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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