Hi,
My name is Chang from Korea, and I'm a newbie to this mailing
list.
So I'm afraid this bug already has been
reported..
According to the documentation, sctp_associate()
automatically gets a free port
number when the local port number of SCTP instance is set to
zero.
But this feature does not work on 1.0.0pre14, and I've found
that the source
code of sctp_registerInstance(), in "distribution.c", does not
accept the port parameter
set to 0.
That is, sctp_registerInstace() does check the first "port"
parameter, and when it is 0,
it returns 0 silently. The code fragment in problem looks
like:
if ((port == 0) || (noOfInStreams==0) || (noOfOutStreams == 0)
|| ....
I modified the source code like this:
if ((noOfInStreams==0) || (noOfOutStreams == 0) ||
....
Then it worked.
Probably already known bug?
Chang Jin-woong
jwjang AT telcoware.com
|
Archive powered by MHonArc 2.6.19+.