[erlang-patches] [PATCH] Fix SCTP multihoming for IPv6
Tue May 8 16:02:28 CEST 2012
On Tue, May 08, 2012 at 08:31:34AM +0200, Tomas Abrahamsson wrote:
> On Mon, May 7, 2012 at 3:17 PM, Raimo Niskanen
> <> wrote:
> > On Sat, May 05, 2012 at 08:02:52PM +0200, Tomas Abrahamsson wrote:
> >> On Solaris, mixing ipv4 addresses and ipv6 adresses in the
> >> call to sctp_bindx is not allowed according to the man page.
> >> Specifying ipv4-mapped ipv6 addresses is allowed, though.
> >> But it seems to half-work in practice: sctp_bindx does not
> >> return an error when adding an ipv4 address to an ipv6 sctp
> >> socket, but on the other hand, it does not seem to work to
> >> connect to it over ipv4 and send sctp messages. The client
> >> thinks it successfully connects, but the server does not see
> >> anything. Same symptoms both when specifying an ipv4
> >> address and an ipv4-mapped ipv6 address to sctp_bindx:
> >> can't get ipv4 sctp communication to work.
> > I would expect such problems on FreeBSD since you have to
> > use a rc.conf setting: ipv6_ipv4mapping="YES" that sets
> > a sysctl flag net.inet6.ip6.v6only: 0
> > or the OS will not allow IPv6 sockets to handle IPv4 traffic.
> > They claim there are too many security problems in that.
> > So it would not surprise me if Solaris does something similar.
> That's a good suggestion. Didn't know about it. Will dig into it
> a bit to see if this could be a reason. The server side symptoms
> were that poll didn't return, while the client saw a comm_up.
> It might well fit with what you describe.
I would have guessed no connection on the client side since there
is no matching listening socket, but who knows...
> erlang-patches mailing list
/ Raimo Niskanen, Erlang/OTP, Ericsson AB
More information about the erlang-patches