diff options
Diffstat (limited to 'net/ipv4/sysctl_net_ipv4.c')
-rw-r--r-- | net/ipv4/sysctl_net_ipv4.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/ipv4/sysctl_net_ipv4.c b/net/ipv4/sysctl_net_ipv4.c index b92f422f2fa8..891ed2f91467 100644 --- a/net/ipv4/sysctl_net_ipv4.c +++ b/net/ipv4/sysctl_net_ipv4.c | |||
@@ -48,6 +48,7 @@ static int tcp_syn_retries_max = MAX_TCP_SYNCNT; | |||
48 | static int ip_ping_group_range_min[] = { 0, 0 }; | 48 | static int ip_ping_group_range_min[] = { 0, 0 }; |
49 | static int ip_ping_group_range_max[] = { GID_T_MAX, GID_T_MAX }; | 49 | static int ip_ping_group_range_max[] = { GID_T_MAX, GID_T_MAX }; |
50 | static int comp_sack_nr_max = 255; | 50 | static int comp_sack_nr_max = 255; |
51 | static u32 u32_max_div_HZ = UINT_MAX / HZ; | ||
51 | 52 | ||
52 | /* obsolete */ | 53 | /* obsolete */ |
53 | static int sysctl_tcp_low_latency __read_mostly; | 54 | static int sysctl_tcp_low_latency __read_mostly; |
@@ -745,9 +746,10 @@ static struct ctl_table ipv4_net_table[] = { | |||
745 | { | 746 | { |
746 | .procname = "tcp_probe_interval", | 747 | .procname = "tcp_probe_interval", |
747 | .data = &init_net.ipv4.sysctl_tcp_probe_interval, | 748 | .data = &init_net.ipv4.sysctl_tcp_probe_interval, |
748 | .maxlen = sizeof(int), | 749 | .maxlen = sizeof(u32), |
749 | .mode = 0644, | 750 | .mode = 0644, |
750 | .proc_handler = proc_dointvec, | 751 | .proc_handler = proc_douintvec_minmax, |
752 | .extra2 = &u32_max_div_HZ, | ||
751 | }, | 753 | }, |
752 | { | 754 | { |
753 | .procname = "igmp_link_local_mcast_reports", | 755 | .procname = "igmp_link_local_mcast_reports", |