Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57325
b: refs/heads/master
c: 3f196eb
h: refs/heads/master
i:
  57323: 1ad9a11
v: v3
  • Loading branch information
Mark Glines authored and David S. Miller committed Jun 4, 2007
1 parent 3d630db commit a4f3394
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 278a3de5abc7901805689a66340b5af9882b4f9a
refs/heads/master: 3f196eb519a419bf83ecc22753943fd0a0de4f8f
4 changes: 1 addition & 3 deletions trunk/net/ipv4/inet_connection_sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@ EXPORT_SYMBOL(inet_csk_timer_bug_msg);

/*
* This array holds the first and last local port number.
* For high-usage systems, use sysctl to change this to
* 32768-61000
*/
int sysctl_local_port_range[2] = { 1024, 4999 };
int sysctl_local_port_range[2] = { 32768, 61000 };

int inet_csk_bind_conflict(const struct sock *sk,
const struct inet_bind_bucket *tb)
Expand Down
3 changes: 0 additions & 3 deletions trunk/net/ipv4/tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2464,13 +2464,10 @@ void __init tcp_init(void)
order++)
;
if (order >= 4) {
sysctl_local_port_range[0] = 32768;
sysctl_local_port_range[1] = 61000;
tcp_death_row.sysctl_max_tw_buckets = 180000;
sysctl_tcp_max_orphans = 4096 << (order - 4);
sysctl_max_syn_backlog = 1024;
} else if (order < 3) {
sysctl_local_port_range[0] = 1024 * (3 - order);
tcp_death_row.sysctl_max_tw_buckets >>= (3 - order);
sysctl_tcp_max_orphans >>= (3 - order);
sysctl_max_syn_backlog = 128;
Expand Down

0 comments on commit a4f3394

Please sign in to comment.