[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>
This commit is contained in:
committed by
David S. Miller
parent
3c0cfc1358
commit
0639300900
@@ -197,8 +197,6 @@ extern struct sctp_globals {
|
||||
|
||||
/* This is the sctp port control hash. */
|
||||
int port_hashsize;
|
||||
int port_rover;
|
||||
spinlock_t port_alloc_lock; /* Protects port_rover. */
|
||||
struct sctp_bind_hashbucket *port_hashtable;
|
||||
|
||||
/* This is the global local address list.
|
||||
|
Reference in New Issue
Block a user