delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/05/25/22:11:35

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <374B5838.84C11305@cisco.com>
Date: Tue, 25 May 1999 19:11:04 -0700
From: "Ashish C. Nagre" <ashishcn AT cisco DOT com>
Reply-To: ashishcn AT cisco DOT com
Organization: Cisco Systems
X-Mailer: Mozilla 4.03 [en] (WinNT; U)
MIME-Version: 1.0
To: cygwin AT sourceware DOT cygnus DOT com
Subject: 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 AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019