[erlang-bugs] gen_sctp:open fails on linux

Raimo Niskanen raimo+erlang-bugs@REDACTED
Wed Apr 4 10:49:33 CEST 2007


Allright, very good. We will fix this at least to R11B-5.
I notice you do not need a patch yourself....


On Tue, Apr 03, 2007 at 02:51:22PM -0400, jrsantos@REDACTED wrote:
> I was testing out the SCTP support included in Erlang/OTP R11B-4 on a
> linux 2.6.8 system.  Calls to gen_sctp:open were failing.  I narrowed
> the problem down to an einval being returned while trying to set the
> sndbuf socket option.
> 
> Looking at erts/emulator/drivers/common/inet_drv.c, it looks like it is
> calling setsockopt(IPPROTO_SCTP, SO_SNDBUF, ...), which fails.  I
> believe that this should be calling setsockopt(SOL_SOCKET, SO_SNDBUF,
> ...) instead.  Also, I think the same thing holds for SO_RCVBUF.
> 
> I made these changes in inet_drv.c, and the gen_sctp:open call succeeds
> and I am able to use the SCTP socket.
> 
>         -Jon
> _______________________________________________
> erlang-bugs mailing list
> erlang-bugs@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-bugs

-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB



More information about the erlang-bugs mailing list