SCTP Discussions

Text archives Help


[SCTP-Discussion] A Bug in sctp_registerInstance


Chronological Thread 
  • From: "J.W. Chang" <jwjang AT telcoware.com>
  • To: <discussion AT sctp.de>
  • Subject: [SCTP-Discussion] A Bug in sctp_registerInstance
  • Date: Fri Nov 2 14:07:00 2001
  • List-id: SCTP Discussions <discussion.sctp.de>
  • Organization: Telcoware, Co. Ltd.

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


  • [SCTP-Discussion] A Bug in sctp_registerInstance, J.W. Chang, 11/02/2001

Archive powered by MHonArc 2.6.19+.

Top of page