]> git.baikalelectronics.ru Git - kernel.git/commit
[SCTP]: port randomization
authorStephen Hemminger <shemminger@linux-foundation.org>
Thu, 11 Oct 2007 00:30:18 +0000 (17:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Oct 2007 00:30:18 +0000 (17:30 -0700)
commit9efc6803a3bbbe8a2a715ff5f5bbfac942766f42
tree0cd2e1f4cedd58c3c8056018bb6148dddd21d6ab
parent839a4ccd659e401090ca0f4380e43b73da40beb6
[SCTP]: port randomization

Add port randomization rather than a simple fixed rover
for use with SCTP.  This makes it act similar to TCP, UDP, DCCP
when allocating ports.

No longer need port_alloc_lock as well (suggestion by Brian Haley).

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/structs.h
net/sctp/protocol.c
net/sctp/socket.c