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]

Question about porting


Hello,
I am new user of cygwin32 and am trying to port an application from UNIX
to NT. 
While executing the program croaks at the following piece of code :

	 if (ioctl(fd, SIOCGIFADDR, (char *)&ifr) < 0) {
         (void)sprintf(errbuf, "SIOCGIFADDR: %s: %s",
             device, strerror(errno));
         (void)close(fd);
         return (-1);
 where fd is a socket handle.
Anyone know what could the problem with it.
What the function is trying to do is find out all the IP addresses
associated with a network interface.
Thanks for your time.


Regards,
Ashish

--
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]