Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Fri, 11 May 2001 19:44:48 +0200 (MEST)
From: Alexander Gottwald <Alexander.Gottwald@informatik.tu-chemnitz.de>
To: Muthukumar G <kmuthu@hotmail.com>
Cc: cygwin-xfree@cygwin.com, cygwin@cygwin.com
Subject: Re: XDMCP No valid address (Win98SE)
In-Reply-To: <F35PzGNsokLQ8aZRhQd00002e50@hotmail.com>
Message-ID: <Pine.LNX.4.21.0105111931330.1710-100000@lupus.ago.vpn>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

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

-- 
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

