This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: Problem with 2 IPs
- Subject: Re: Problem with 2 IPs
- From: Alexander Gottwald <Alexander dot Gottwald at informatik dot tu-chemnitz dot de>
- Date: Sun, 21 Oct 2001 00:37:20 +0200 (MEST)
- Cc: cygwin-xfree at cygwin dot com
On Fri, 19 Oct 2001, Giorgio wrote:
> >
> > You can start lookin in winsup/cygwin/net.cc in a function get_2k_ifconf.
> >
> > I guess the that either winsock does not return information about the 2IPs
> > per interface or cygwin does not handle this correctly.
> >
>
> thank you...
> i'll keep you posted
I now looked at the cygwin code and found the error. I currently compile
a new cygwin1.dll. So if you're already working on it, you can wait until
I released the patch.
The problem is that cygwin searches for all interfaces and the searches
the matching IP. The correct order is to search for all IPs and the search
the interfaces for it.
The current code does not produce exactly the same output as linux does
(linux returns eth0, eth0:1, eth0:2 for different IPs on one device, the
modifed cygwin code returns eth0, eth1, eth2 ... ) but It atleast works.
bye
ago
--
Alexander.Gottwald@informatik.tu-chemnitz.de
http://www.gotti.org ICQ: 126018723
phone: +49 3725 349 80 80 mobile: +49 172 7854017