aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/af_inet6.c
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2008-01-22 08:58:31 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:10:34 -0500
commit8d8354d2fb9277f165715a6e1cb92bcc89259975 (patch)
tree465fd866b6f5b4ab9c05a5441697c07502d0f0ed /net/ipv6/af_inet6.c
parent9d5c824399dea881779d78a6c147288bf2dccb6b (diff)
[NETNS][FRAGS]: Move ctl tables around.
This is a preparation for sysctl netns-ization. Move the ctl tables to the files, where the tuning variables reside. Plus make the helpers to register the tables. This will simplify the later patches and will keep similar things closer to each other. ipv4, ipv6 and conntrack_reasm are patched differently, but the result is all the tables are in appropriate files. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/af_inet6.c')
-rw-r--r--net/ipv6/af_inet6.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c
index 6738a7b0e67..bddac0e8780 100644
--- a/net/ipv6/af_inet6.c
+++ b/net/ipv6/af_inet6.c
@@ -721,10 +721,6 @@ static void cleanup_ipv6_mibs(void)
721static int inet6_net_init(struct net *net) 721static int inet6_net_init(struct net *net)
722{ 722{
723 net->ipv6.sysctl.bindv6only = 0; 723 net->ipv6.sysctl.bindv6only = 0;
724 net->ipv6.sysctl.frags.high_thresh = 256 * 1024;
725 net->ipv6.sysctl.frags.low_thresh = 192 * 1024;
726 net->ipv6.sysctl.frags.timeout = IPV6_FRAG_TIMEOUT;
727 net->ipv6.sysctl.frags.secret_interval = 10 * 60 * HZ;
728 net->ipv6.sysctl.flush_delay = 0; 724 net->ipv6.sysctl.flush_delay = 0;
729 net->ipv6.sysctl.ip6_rt_max_size = 4096; 725 net->ipv6.sysctl.ip6_rt_max_size = 4096;
730 net->ipv6.sysctl.ip6_rt_gc_min_interval = HZ / 2; 726 net->ipv6.sysctl.ip6_rt_gc_min_interval = HZ / 2;
@@ -734,7 +730,6 @@ static int inet6_net_init(struct net *net)
734 net->ipv6.sysctl.ip6_rt_mtu_expires = 10*60*HZ; 730 net->ipv6.sysctl.ip6_rt_mtu_expires = 10*60*HZ;
735 net->ipv6.sysctl.ip6_rt_min_advmss = IPV6_MIN_MTU - 20 - 40; 731 net->ipv6.sysctl.ip6_rt_min_advmss = IPV6_MIN_MTU - 20 - 40;
736 net->ipv6.sysctl.icmpv6_time = 1*HZ; 732 net->ipv6.sysctl.icmpv6_time = 1*HZ;
737 ipv6_frag_sysctl_init(net);
738 733
739 return 0; 734 return 0;
740} 735}