[PATCH 2/2] ws2_32: Return the full list of local IP addresses when gethostbyname() is called on the local hostname (try 3)
ehoover at mines.edu
Sat Dec 5 20:36:03 CST 2009
If an application calls gethostbyname() on the local hostname then
it expects an IP to be returned for each available interface
(Knowledge Base Article Q160215). This patch makes it so that when
this request occurs Wine uses the adapter list and the routing table
to build the list of IP addresses, it then sorts those addresses from
highest routing priority to lowest routing priority (lowest metric to
highest metric). This version of the patch fixes a segfault when no
local adapters are found and fixes a bug in the sorting of IP
addresses where the same address could be returned multiple times.
ws2_32: Return the full list of local IP addresses when
gethostbyname() is called on the local hostname.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 11160 bytes
Desc: not available
More information about the wine-patches