Adjust DataOffset so SocketAddress.ToString() works similar to Windows (dotnet/coref...
authorTomas Weinfurt <tweinfurt@yahoo.com>
Sun, 22 Jul 2018 00:02:06 +0000 (17:02 -0700)
committerDavid Shulman <david.shulman@microsoft.com>
Sun, 22 Jul 2018 00:02:06 +0000 (17:02 -0700)
commit87bff6cc0239070e51c84e802a4810ce8d6c07a4
treec5f4c5aebf3a267713d3d0df38ed61a623cd44e9
parent4530e104dd3e03261fe6d115fbdca5eeff83f8ca
Adjust DataOffset so SocketAddress.ToString() works similar to Windows  (dotnet/corefx#31134)

Correct DataOffset and add test for ToString() function.

Fixes dotnet/corefx#30523

Commit migrated from https://github.com/dotnet/corefx/commit/4ce283d92d06b3b759155c5803e8036ca865ef22
src/libraries/Common/src/System/Net/SocketAddress.cs
src/libraries/Common/src/System/Net/SocketAddressPal.Unix.cs
src/libraries/Common/src/System/Net/SocketAddressPal.Windows.cs
src/libraries/System.Net.Primitives/tests/PalTests/SocketAddressPalTest.cs