Bug 235716 - lang/mono IPv6 support
Summary: lang/mono IPv6 support
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-mono mailing list
URL:
Keywords:
: 235717 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-02-13 16:59 UTC by ps
Modified: 2019-05-27 13:57 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (mono)


Attachments
Change AF_INET6 to 28 (488 bytes, patch)
2019-02-13 16:59 UTC, ps
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 w.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 w.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).