| www.delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| 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 <Alexander DOT Gottwald AT informatik DOT tu-chemnitz DOT de> |
| To: | Alexander Gottwald <Alexander DOT Gottwald AT informatik DOT tu-chemnitz DOT de> |
| Cc: | Muthukumar G <kmuthu AT hotmail DOT com>, cygwin-xfree AT cygwin DOT com, |
| cygwin AT cygwin DOT com | |
| Subject: | Re: XDMCP No valid address (Win98SE) |
| In-Reply-To: | <Pine.LNX.4.21.0105111931330.1710-100000@lupus.ago.vpn> |
| Message-ID: | <Pine.LNX.4.21.0105131632470.967-100000@lupus.ago.vpn> |
| MIME-Version: | 1.0 |
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |