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

2007-01-03 Thread Corinna Vinschen
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

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

2006-12-29 Thread Jonathan Lennox
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. Compare the output of the program local-if.c (attached below) to the output of ipconfig.exe, when I have one interface disabled: $ ./local-if eth0

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

2006-12-28 Thread Jonathan Lennox
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. Compare the output of the program local-if.c (attached below) to the output of ipconfig.exe, when I have one interface disabled: $ ./local-if eth0