aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@linux-foundation.org>2007-10-10 20:30:18 -0400
committerDavid S. Miller <davem@davemloft.net>2007-10-10 20:30:18 -0400
commit06393009000779b00a558fd2f280882cc7dc2008 (patch)
tree0cd2e1f4cedd58c3c8056018bb6148dddd21d6ab /include/net
parent3c0cfc135829b98f7a4894938652f9ef78e24237 (diff)
[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>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/sctp/structs.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h
index 448f713a0205..ef892e00c833 100644
--- a/include/net/sctp/structs.h
+++ b/include/net/sctp/structs.h
@@ -197,8 +197,6 @@ extern struct sctp_globals {
197 197
198 /* This is the sctp port control hash. */ 198 /* This is the sctp port control hash. */
199 int port_hashsize; 199 int port_hashsize;
200 int port_rover;
201 spinlock_t port_alloc_lock; /* Protects port_rover. */
202 struct sctp_bind_hashbucket *port_hashtable; 200 struct sctp_bind_hashbucket *port_hashtable;
203 201
204 /* This is the global local address list. 202 /* This is the global local address list.