Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Sun, 13 May 2001 16:40:19 +0200 (MEST) From: Alexander Gottwald To: Alexander Gottwald Cc: Muthukumar G , cygwin-xfree AT cygwin DOT com, cygwin AT cygwin DOT com Subject: Re: XDMCP No valid address (Win98SE) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 11 May 2001, Alexander Gottwald wrote: > Here is the main problem. On server initialization, all known interfaces > are registered to xdmcp. Normally there would be at least two other entries > with ifname = eth0. > The error seems to be in a cygwin ioctl function. The code which calls > t is in os/access.c and is (roughly) this. > > int fd = fopen("/dev/ip",O_RDWR, 0); > ifnet.ib_next=1; > while (ifnet.ib_next) { > str.ic_cmd = IPIOC_GETIPB; > str.ic_dp = (char *) &ifnet; > ioctl(fd,I_STR, &str); > } I just checked the code and noticed, I've looked in the wrong place. The real iterface detection code is based on ioctl(fd,SIOCGIFCONF,pointer). > > In some cases, the ioctl will only work for the loopback device. Maybe some > of those who are familar with the cygwin network code can give me a hint. -- Alexander DOT Gottwald AT informatik DOT tu-chemnitz DOT de http://www.gotti.org +49 3725 3498080 -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple