[PATCH 2/2] ws2_32: Return the full list of local IP addresses when gethostbyname() is called on the local hostname (try 3)

Erich Hoover ehoover at mines.edu
Sat Dec 5 20:36:03 CST 2009


Real Name:
   Erich Hoover
Description:
   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.
Changelog:
   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...
Name: 0002-ws2_32-Return-the-full-list-of-local-IP-addresses-wh.patch
Type: text/x-patch
Size: 11160 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20091205/4d84e130/attachment.bin>


More information about the wine-patches mailing list