> Really? It works for me. You mean boot with no link, or what? I did
> that, and if_nameindex still returned eth0.
Right. if_nameindex does not return eth0 if I boot up without an ethernet
connection. Maybe this is a system dependent thing? I am running on a RH8
based system.
The if_nameindex
>> Wait. This works better than getifaddrs. It successfully returns info
>> for "down" devices on my RH8 based linux box, with my creaky old
>> wine-20050419.
> (snip)
Yikes! It turns out if_nameindex() doesn't return info for down devices,
but if_indextoname() does. It's all so touchy... So, atta
Juan,
>> When you boot a linux box without an ethernet connection, and eth0
>> configuration fails, GetAdaptersInfo does not return MAC address info
>> for eth0.
>> The problem seems to be that enumerateInterfaces (in
>> dlls/iphlpapi/ifenum.c) doesn't create a record for eth0, because
>> SIOCGIFC
We ran into an obscure problem with iphlpapi that I'd like to get help
with. When you boot a linux box without an ethernet connection, and eth0
configuration fails, GetAdaptersInfo does not return MAC address info for
eth0.
The problem seems to be that enumerateInterfaces (in
dlls/iphlpapi/ifenum.