[SCTP]: Fix the SO_REUSEADDR handling to be similar to TCP.
authorVlad Yasevich <vladislav.yasevich@hp.com>
Fri, 4 May 2007 20:34:49 +0000 (13:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 May 2007 20:34:49 +0000 (13:34 -0700)
commitce5325c1338acf965f4300f4976eac2129aeb439
treebd1da5c37d92568113c79ba47668a1c2a756811a
parent16d00fb7765a43a1b05989062e985d283b3a1f2d
[SCTP]: Fix the SO_REUSEADDR handling to be similar to TCP.

Update the SO_REUSEADDR handling to also check for listen state.  This
was muliple listening server sockets can't be created and they will
not steal packets from each other.

Reported by Paolo Galtieri <pgaltieri@mvista.com>

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