http://bugs.winehq.org/show_bug.cgi?id=22355
--- Comment #8 from Juan Lang juan_lang@yahoo.com 2010-04-15 10:23:59 --- (In reply to comment #6)
Console log with (incorrect?) patch enumerating non-loopback i/f
In your log:
trace:iphlpapi:GetAdaptersInfo pAdapterInfo 0x0, pOutBufLen 0x34b790 trace:iphlpapi:GetAdaptersInfo returning 111 trace:iphlpapi:GetAdaptersInfo pAdapterInfo 0x81383aa8, pOutBufLen 0x34b790 trace:iphlpapi:AllocateAndGetIpForwardTableFromStack table 0x34b738, bOrder 0, heap 0x118000, flags 0x00000000 warn:iphlpapi:AllocateAndGetIpForwardTableFromStack Unexpected address type 0x10 warn:iphlpapi:AllocateAndGetIpForwardTableFromStack Unexpected address type 0x20 trace:iphlpapi:AllocateAndGetIpForwardTableFromStack returning ret 0 table 0xd5f9e28 trace:iphlpapi:GetAdaptersInfo returning 0
As you point out, the new trace isn't called. This indicates that if_nameindex is returning NULL on your system, or that every returned interface has an empty name. This is unexpected, and is a bug in your system, as far as I can tell.
Can you test a dummy program that calls if_nameindex and prints out the name of every interface it finds? If it works in a non-chroot environment, how about in a chroot environment?