diff options
author | Daniel Lezcano <dlezcano@fr.ibm.com> | 2008-01-10 05:53:43 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:01:17 -0500 |
commit | 760f2d0186225f06d46e07232d65219c5055cad3 (patch) | |
tree | 56096a88e003753434c135d22ffab8f4f9904bc6 /include/net/ipv6.h | |
parent | 89918fc270bb77cb1a0703f0ea566a692b32e324 (diff) |
[NETNS][IPV6]: Make multiple instance of sysctl tables.
Each network namespace wants its own set of sysctl value, eg. we
should not be able from a namespace to set a sysctl value for another
namespace , especially for the initial network namespace.
This patch duplicates the sysctl table when we register a new network
namespace for ipv6. The duplicated table are postfixed with the
"template" word to notify the developper the table is cloned.
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ipv6.h')
-rw-r--r-- | include/net/ipv6.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/ipv6.h b/include/net/ipv6.h index 3e086f8bb449..5519035491e7 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h | |||
@@ -619,8 +619,8 @@ static inline int snmp6_unregister_dev(struct inet6_dev *idev) | |||
619 | #endif | 619 | #endif |
620 | 620 | ||
621 | #ifdef CONFIG_SYSCTL | 621 | #ifdef CONFIG_SYSCTL |
622 | extern ctl_table ipv6_route_table[]; | 622 | extern ctl_table ipv6_route_table_template[]; |
623 | extern ctl_table ipv6_icmp_table[]; | 623 | extern ctl_table ipv6_icmp_table_template[]; |
624 | 624 | ||
625 | extern int ipv6_sysctl_register(void); | 625 | extern int ipv6_sysctl_register(void); |
626 | extern void ipv6_sysctl_unregister(void); | 626 | extern void ipv6_sysctl_unregister(void); |