diff options
| -rw-r--r-- | net/ipv4/sysctl_net_ipv4.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/net/ipv4/sysctl_net_ipv4.c b/net/ipv4/sysctl_net_ipv4.c index 433231ccfb17..0330ab2e2b63 100644 --- a/net/ipv4/sysctl_net_ipv4.c +++ b/net/ipv4/sysctl_net_ipv4.c | |||
| @@ -41,8 +41,6 @@ static int tcp_syn_retries_min = 1; | |||
| 41 | static int tcp_syn_retries_max = MAX_TCP_SYNCNT; | 41 | static int tcp_syn_retries_max = MAX_TCP_SYNCNT; |
| 42 | static int ip_ping_group_range_min[] = { 0, 0 }; | 42 | static int ip_ping_group_range_min[] = { 0, 0 }; |
| 43 | static int ip_ping_group_range_max[] = { GID_T_MAX, GID_T_MAX }; | 43 | static int ip_ping_group_range_max[] = { GID_T_MAX, GID_T_MAX }; |
| 44 | static int min_sndbuf = SOCK_MIN_SNDBUF; | ||
| 45 | static int min_rcvbuf = SOCK_MIN_RCVBUF; | ||
| 46 | 44 | ||
| 47 | /* Update system visible IP port range */ | 45 | /* Update system visible IP port range */ |
| 48 | static void set_local_port_range(struct net *net, int range[2]) | 46 | static void set_local_port_range(struct net *net, int range[2]) |
| @@ -530,7 +528,7 @@ static struct ctl_table ipv4_table[] = { | |||
| 530 | .maxlen = sizeof(sysctl_tcp_wmem), | 528 | .maxlen = sizeof(sysctl_tcp_wmem), |
| 531 | .mode = 0644, | 529 | .mode = 0644, |
| 532 | .proc_handler = proc_dointvec_minmax, | 530 | .proc_handler = proc_dointvec_minmax, |
| 533 | .extra1 = &min_sndbuf, | 531 | .extra1 = &one, |
| 534 | }, | 532 | }, |
| 535 | { | 533 | { |
| 536 | .procname = "tcp_notsent_lowat", | 534 | .procname = "tcp_notsent_lowat", |
| @@ -545,7 +543,7 @@ static struct ctl_table ipv4_table[] = { | |||
| 545 | .maxlen = sizeof(sysctl_tcp_rmem), | 543 | .maxlen = sizeof(sysctl_tcp_rmem), |
| 546 | .mode = 0644, | 544 | .mode = 0644, |
| 547 | .proc_handler = proc_dointvec_minmax, | 545 | .proc_handler = proc_dointvec_minmax, |
| 548 | .extra1 = &min_rcvbuf, | 546 | .extra1 = &one, |
| 549 | }, | 547 | }, |
| 550 | { | 548 | { |
| 551 | .procname = "tcp_app_win", | 549 | .procname = "tcp_app_win", |
| @@ -758,7 +756,7 @@ static struct ctl_table ipv4_table[] = { | |||
| 758 | .maxlen = sizeof(sysctl_udp_rmem_min), | 756 | .maxlen = sizeof(sysctl_udp_rmem_min), |
| 759 | .mode = 0644, | 757 | .mode = 0644, |
| 760 | .proc_handler = proc_dointvec_minmax, | 758 | .proc_handler = proc_dointvec_minmax, |
| 761 | .extra1 = &min_rcvbuf, | 759 | .extra1 = &one |
| 762 | }, | 760 | }, |
| 763 | { | 761 | { |
| 764 | .procname = "udp_wmem_min", | 762 | .procname = "udp_wmem_min", |
| @@ -766,7 +764,7 @@ static struct ctl_table ipv4_table[] = { | |||
| 766 | .maxlen = sizeof(sysctl_udp_wmem_min), | 764 | .maxlen = sizeof(sysctl_udp_wmem_min), |
| 767 | .mode = 0644, | 765 | .mode = 0644, |
| 768 | .proc_handler = proc_dointvec_minmax, | 766 | .proc_handler = proc_dointvec_minmax, |
| 769 | .extra1 = &min_sndbuf, | 767 | .extra1 = &one |
| 770 | }, | 768 | }, |
| 771 | { } | 769 | { } |
| 772 | }; | 770 | }; |
