diff options
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/ip_fragment.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/net/ipv4/ip_fragment.c b/net/ipv4/ip_fragment.c index ccee68dffd6e..634fc31aa243 100644 --- a/net/ipv4/ip_fragment.c +++ b/net/ipv4/ip_fragment.c | |||
@@ -700,14 +700,17 @@ static struct ctl_table ip4_frags_ns_ctl_table[] = { | |||
700 | .data = &init_net.ipv4.frags.high_thresh, | 700 | .data = &init_net.ipv4.frags.high_thresh, |
701 | .maxlen = sizeof(int), | 701 | .maxlen = sizeof(int), |
702 | .mode = 0644, | 702 | .mode = 0644, |
703 | .proc_handler = proc_dointvec | 703 | .proc_handler = proc_dointvec_minmax, |
704 | .extra1 = &init_net.ipv4.frags.low_thresh | ||
704 | }, | 705 | }, |
705 | { | 706 | { |
706 | .procname = "ipfrag_low_thresh", | 707 | .procname = "ipfrag_low_thresh", |
707 | .data = &init_net.ipv4.frags.low_thresh, | 708 | .data = &init_net.ipv4.frags.low_thresh, |
708 | .maxlen = sizeof(int), | 709 | .maxlen = sizeof(int), |
709 | .mode = 0644, | 710 | .mode = 0644, |
710 | .proc_handler = proc_dointvec | 711 | .proc_handler = proc_dointvec_minmax, |
712 | .extra1 = &zero, | ||
713 | .extra2 = &init_net.ipv4.frags.high_thresh | ||
711 | }, | 714 | }, |
712 | { | 715 | { |
713 | .procname = "ipfrag_time", | 716 | .procname = "ipfrag_time", |
@@ -752,7 +755,10 @@ static int __net_init ip4_frags_ns_ctl_register(struct net *net) | |||
752 | goto err_alloc; | 755 | goto err_alloc; |
753 | 756 | ||
754 | table[0].data = &net->ipv4.frags.high_thresh; | 757 | table[0].data = &net->ipv4.frags.high_thresh; |
758 | table[0].extra1 = &net->ipv4.frags.low_thresh; | ||
759 | table[0].extra2 = &init_net.ipv4.frags.high_thresh; | ||
755 | table[1].data = &net->ipv4.frags.low_thresh; | 760 | table[1].data = &net->ipv4.frags.low_thresh; |
761 | table[1].extra2 = &net->ipv4.frags.high_thresh; | ||
756 | table[2].data = &net->ipv4.frags.timeout; | 762 | table[2].data = &net->ipv4.frags.timeout; |
757 | 763 | ||
758 | /* Don't export sysctls to unprivileged users */ | 764 | /* Don't export sysctls to unprivileged users */ |