This is the mail archive of the cygwin@cygwin.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]

Re: XDMCP No valid address (Win98SE)


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.Gottwald@informatik.tu-chemnitz.de
http://www.gotti.org
+49 3725 3498080


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]