GetHostAddresses returns all IPs for local host name on Linux (dotnet/corefx#41764)
authorMarie Píchová <mapichov@microsoft.com>
Mon, 4 Nov 2019 15:22:12 +0000 (16:22 +0100)
committerGitHub <noreply@github.com>
Mon, 4 Nov 2019 15:22:12 +0000 (16:22 +0100)
commit2eaf83338a40989ec6c9eb72c0b2d7c85f2ad3c4
treed5b1a589cdf656346f314b2bf57726b56fab7e92
parent0894b93223ddb31c0051934e6de3971c48d4d663
GetHostAddresses returns all IPs for local host name on Linux (dotnet/corefx#41764)

Unifies behavior of GetHostAddresses for local host name on Linux with Windows and Mono versions by adding the result of getifaddrs.

Commit migrated from https://github.com/dotnet/corefx/commit/d8cfa3b6927408d4aa393689742c854eead61c8c
src/libraries/Common/src/Interop/Unix/System.Native/Interop.HostEntry.cs
src/libraries/Native/Unix/System.Native/pal_networking.c
src/libraries/Native/Unix/System.Native/pal_networking.h
src/libraries/System.Net.NameResolution/src/System.Net.NameResolution.csproj
src/libraries/System.Net.NameResolution/src/System/Net/NameResolutionPal.Unix.cs