Bug 235716 - lang/mono IPv6 support
Summary: lang/mono IPv6 support
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
: 235717 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-02-13 16:59 UTC by ps
Modified: 2024-10-23 17:00 UTC (History)
4 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 Walter Schwarzenfeld 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 2019-02-14 11:41:28 UTC
*** Bug 235717 has been marked as a duplicate of this bug. ***
Comment 3 Conrad Meyer freebsd_committer freebsd_triage 2019-05-24 01:44:07 UTC
Change looks correct to me.
Comment 4 Conrad Meyer freebsd_committer freebsd_triage 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 freebsd_triage 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 freebsd_triage 2019-05-27 13:57:37 UTC
Upstream issue fixed in master (same PR URL).
Comment 7 Jan Beich freebsd_committer freebsd_triage 2023-08-10 11:15:41 UTC
^Triage: reset Assignee after ports 4553130a9c53.
Comment 8 Jan Beich freebsd_committer freebsd_triage 2023-08-10 11:18:27 UTC
^Triage: reset Assignee after ports c59052ead113. (ignore previous comment, it referenced bogus commit)
Comment 9 Marcin Cieślak 2023-08-13 23:28:28 UTC
Seems to be fixed as of mono6.8-6.8.0.123_2
Comment 10 Zsolt Udvari freebsd_committer freebsd_triage 2024-10-23 17:00:38 UTC
(In reply to Marcin Cieślak from comment #9)
No reaction for more than a year. If the problem still occurs reopen this PR.