delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Date: | Wed, 3 Jan 2007 11:38:41 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Cygwin's ioctl(SIOCGIFFLAGS) always sets the IFF_UP flag |
Message-ID: | <20070103103841.GB11943@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <17812 DOT 8696 DOT 611370 DOT 458886 AT metro-north DOT cs DOT columbia DOT edu> |
Mime-Version: | 1.0 |
In-Reply-To: | <17812.8696.611370.458886@metro-north.cs.columbia.edu> |
User-Agent: | Mutt/1.4.2.2i |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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 |
On Dec 28 14:58, Jonathan Lennox wrote: > I've discovered that Cygwin's ioctl(SIOCGIFFLAGS) call always sets the > IFF_UP flag, even if the interface being queried is disabled or > unconfigured. Yes, right. SIOCGIFFLAGS is just faked to handle the default case. See fhandler_socket::ioctl(), it doesn't even call get_ifconf in case of SIOCGIFFLAGS. The code is older than the advent of get_2k_ifconf, AFAIR. Hmm, it shouldn't be too hard to support SIOCGIFFLAGS more or less correctly starting with Windows 2000. I put this on my TODO list. Thanks for the report, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |