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
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
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
3 matches
Mail list logo