Bug 235716

Summary: lang/mono IPv6 support
Product: Ports & Packages Reporter: ps
Component: Individual Port(s)Assignee: freebsd-mono (Nobody) <mono>
Status: New ---    
Severity: Affects Some People CC: cem, w.schwarzenfeld
Priority: --- Flags: bugzilla: maintainer-feedback? (mono)
Version: Latest   
Hardware: Any   
OS: Any   
Description Flags
Change AF_INET6 to 28 none

Description ps 2019-02-13 16:59:56 UTC
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")'
Comment 1 Walter Schwarzenfeld freebsd_triage 2019-02-13 17:56:14 UTC
You send two seemingly identical PR's. Was it intended or went something wrong?
Comment 2 Walter Schwarzenfeld freebsd_triage 2019-02-14 11:41:28 UTC
*** Bug 235717 has been marked as a duplicate of this bug. ***
Comment 3 Conrad Meyer freebsd_committer 2019-05-24 01:44:07 UTC
Change looks correct to me.
Comment 4 Conrad Meyer freebsd_committer 2019-05-24 01:54:25 UTC
(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.
Comment 5 Conrad Meyer freebsd_committer 2019-05-24 03:16:06 UTC
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
Comment 6 Conrad Meyer freebsd_committer 2019-05-27 13:57:37 UTC
Upstream issue fixed in master (same PR URL).