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

On Fri, 11 May 2001, Muthukumar G wrote:

> Hi Ago,
> 
>    I tried running the XWin.exe (which you mentioned) on my WIN95 (NOT 
> WIN98) box and this is what I got:
> 
> D:\cygwin\usr\X11R6\bin>xwin-emu3 -screen 0 1024x768x16 -from 192.84.36.146 
> -query 192.84.36.6
> InitConnectionLimits: MaxClients = 31
> _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
> Xserver: DefineSelf(): ifname = lo, addr = 127.0.0.1

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);
}

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.

> get_xdmcp_sock: binding xdmcp socket to addr 192.84.36.146:0
> winDetectSupportedEngines () - Windows 95/98/Me
> winDetectSupportedEngines () - DirectDraw installed
> winDetectSupportedEngines () - Returning, supported engines 00000003
> winSetEngine () - Using Shadow DirectDraw
> winCreateBoundingWindowWindowed () - WindowClient width 1018 height 714
> winInitVisualsShadowDD () - Masks: 00007c00 000003e0 0000001f bpRGB: 5
> winInitVisualsShadowDD () - Returning
> 
> Fatal server error:
> XDMCP fatal error: Session declined No valid address
> 
>     In case this helps in getting the problem fixed ... (though you did not 
> tell me to try this). The NIC is Intel EtherExpress Pro/100

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

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