aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/sysctl_net_ipv6.c
diff options
context:
space:
mode:
authorDaniel Lezcano <dlezcano@fr.ibm.com>2008-01-10 06:01:01 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:01:20 -0500
commit4990509f19e8f1e000a83a88fc46328f73b8a88a (patch)
tree83d493e6081e9d2298a55925ee0a7f4bfedd0a51 /net/ipv6/sysctl_net_ipv6.c
parent7c76509d0da99f29289b9b7ab134791e45d49b15 (diff)
[NETNS][IPV6]: Make sysctls route per namespace.
All the sysctl concerning the routes are moved to the network namespace structure. A helper function is called to initialize the variables. Because the ipv6 protocol is not yet per namespace, the variables are accessed relatively from the network namespace. Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/sysctl_net_ipv6.c')
-rw-r--r--net/ipv6/sysctl_net_ipv6.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/ipv6/sysctl_net_ipv6.c b/net/ipv6/sysctl_net_ipv6.c
index d223159638d3..b4ba422f2714 100644
--- a/net/ipv6/sysctl_net_ipv6.c
+++ b/net/ipv6/sysctl_net_ipv6.c
@@ -113,7 +113,18 @@ static int ipv6_sysctl_net_init(struct net *net)
113 if (!ipv6_icmp_table) 113 if (!ipv6_icmp_table)
114 goto out_ipv6_route_table; 114 goto out_ipv6_route_table;
115 115
116 ipv6_route_table[0].data = &net->ipv6.sysctl.flush_delay;
117 /* ipv6_route_table[1].data will be handled when we have
118 routes per namespace */
119 ipv6_route_table[2].data = &net->ipv6.sysctl.ip6_rt_max_size;
120 ipv6_route_table[3].data = &net->ipv6.sysctl.ip6_rt_gc_min_interval;
121 ipv6_route_table[4].data = &net->ipv6.sysctl.ip6_rt_gc_timeout;
122 ipv6_route_table[5].data = &net->ipv6.sysctl.ip6_rt_gc_interval;
123 ipv6_route_table[6].data = &net->ipv6.sysctl.ip6_rt_gc_elasticity;
124 ipv6_route_table[7].data = &net->ipv6.sysctl.ip6_rt_mtu_expires;
125 ipv6_route_table[8].data = &net->ipv6.sysctl.ip6_rt_min_advmss;
116 ipv6_table[0].child = ipv6_route_table; 126 ipv6_table[0].child = ipv6_route_table;
127
117 ipv6_table[1].child = ipv6_icmp_table; 128 ipv6_table[1].child = ipv6_icmp_table;
118 129
119 ipv6_table[2].data = &net->ipv6.sysctl.bindv6only; 130 ipv6_table[2].data = &net->ipv6.sysctl.bindv6only;