This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cygwin's ioctl(SIOCGIFFLAGS) always sets the IFF_UP flag


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]