On Fri Oct 3 16:30:29 2025 +0000, Paul Gofman wrote:
Uh, sorry, I missed here that 'struct sockaddr' is actually not a generic address but just ipv4 address and shorter than SOCKADDR_INET. What contributes to confusion is that GetBestInterfaceEx() actually supports ipv6 addresses (that is in tests). MS docs specify the argument as 'sockaddr *' [1] which assumes different handling based on protocol, while the actual headers definition (also in Windows SDK) has 'struct sockaddr *'. I guess then we must leave GetBestInterface() alone and instead fill local SOCKADDR_INET in GetBestInterfaceEx() to pass to GetBestRoute2(). 1. https://learn.microsoft.com/en-us/windows/win32/winsock/sockaddr-2 updated, is this what you meant?
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9085#note_118211