Created attachment 201988 [details]
Change AF_INET6 to 28
Mono incorrectly assigns AF_INET6 for FreeBSD since FreeBSD uses the MacOsNetworkInterfaceAPI. AF_INET6 is 30 on MacOS but 28 on FreeBSD. This allows mono to connect to IPv6 only hostnames:
csharp -e 'new System.Net.WebClient ().DownloadString ("http://www.v6.facebook.com/status.php")'
You send two seemingly identical PR's. Was it intended or went something wrong?
*** Bug 235717 has been marked as a duplicate of this bug. ***
Change looks correct to me.
(In reply to Conrad Meyer from comment #3)
> Change looks correct to me.
I mean, as a port diff. It's not upstreamable as is, which means it will be a continued maintenance burden over time. Ideally, FreeBSD has a related but independent ABI definition from OSX upstream.
Upstream (independent?) github issue: https://github.com/mono/mono/issues/13400
Proposed fix that doesn't just hardcode the Mac AF incorrectly: https://github.com/mono/mono/pull/14619
Upstream issue fixed in master (same PR URL).