Subject: Re: XDMCP No valid address (Win98SE)
From: Alexander Gottwald <[email-masked]>
To: Alexander Gottwald <[email-masked]>
Cc: Muthukumar G <[email-masked]>, [email-masked], [email-masked]
Date: Sun, 13 May 2001 16:40:19 +0200 (MEST)

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.

-- 
[email-masked]
http://www.gotti.org
+49 3725 3498080

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple