]> git.baikalelectronics.ru Git - kernel.git/commit
SCTP: Pick the correct port when binding to 0.
authorVlad Yasevich <vladislav.yasevich@hp.com>
Tue, 21 Aug 2007 05:24:30 +0000 (14:24 +0900)
committerVlad Yasevich <vladislav.yasevich@hp.com>
Thu, 30 Aug 2007 17:55:20 +0000 (13:55 -0400)
commit082bd4610c405731eaccb2b9a405acb116b4ac13
tree7ca42b0e414fffd340bb2242cc1f61547cf21183
parent8ee8f7000505f270c43f91ee959f29e1ad6127f3
SCTP: Pick the correct port when binding to 0.

sctp_bindx() allows the use of unspecified port.  The problem is
that every address we bind to ends up selecting a new port if
the user specified port 0.  This patch allows re-use of the
already selected port when the port from bindx was 0.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
net/sctp/socket.c