delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/11/07/05:27:35

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Thu, 7 Nov 2002 11:27:21 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Cc: Gilles Courcoux <Gilles DOT Courcoux AT col DOT bsf DOT alcatel DOT fr>
Subject: Re: ioctl(SIOCGIFFLAGS) uses the interface address instead of name?
Message-ID: <20021107112721.K2180@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com,
Gilles Courcoux <Gilles DOT Courcoux AT col DOT bsf DOT alcatel DOT fr>
References: <20021016160516 DOT GA17962 AT redhat DOT com>
Mime-Version: 1.0
In-Reply-To: <20021016160516.GA17962@redhat.com>
User-Agent: Mutt/1.3.22.1i

On Wed, 16 Oct 2002 15:09:24 +0200 (MEST),  Gilles Courcoux <Gilles DOT Courcoux AT col DOT bsf DOT alcatel DOT fr> wrote:
> I would thus propose this modification to fhandler_socket.cc (change that
> shouldn't break applications relying on the until-now cygwin behavior) :
> 
> --- fhandler_socket.cc  Sat Jul  6 08:05:32 2002
> +++ fhandler_socket.cc.new      Thu Oct 10 19:05:33 2002
> @@ -996,7 +996,8 @@
>           return -1;
>         }
>        ifr->ifr_flags = IFF_NOTRAILERS | IFF_UP | IFF_RUNNING;
> -      if (ntohl (((struct sockaddr_in *) &ifr->ifr_addr)->sin_addr.s_addr)
> +      if ((! strncmp(ifr->ifr_name, "lo", 2))
> +         || ntohl (((struct sockaddr_in *) &ifr->ifr_addr)->sin_addr.s_addr)
>           == INADDR_LOOPBACK)
>         ifr->ifr_flags |= IFF_LOOPBACK;
>        else

Thanks for that patch!  Applied.

Corinna

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019