]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/ipv6/icmp.c
[NETNS][IPV6]: Make multiple instance of sysctl tables.
[net-next-2.6.git] / net / ipv6 / icmp.c
index c3bbd8687307368f232999b5b7b22afb4da7f8a4..dfe3b37c43e9dad8f111c81e1319f67b82caab90 100644 (file)
@@ -907,7 +907,7 @@ int icmpv6_err_convert(int type, int code, int *err)
 EXPORT_SYMBOL(icmpv6_err_convert);
 
 #ifdef CONFIG_SYSCTL
-ctl_table ipv6_icmp_table[] = {
+ctl_table ipv6_icmp_table_template[] = {
        {
                .ctl_name       = NET_IPV6_ICMP_RATELIMIT,
                .procname       = "ratelimit",
@@ -918,5 +918,15 @@ ctl_table ipv6_icmp_table[] = {
        },
        { .ctl_name = 0 },
 };
+
+struct ctl_table *ipv6_icmp_sysctl_init(struct net *net)
+{
+       struct ctl_table *table;
+
+       table = kmemdup(ipv6_icmp_table_template,
+                       sizeof(ipv6_icmp_table_template),
+                       GFP_KERNEL);
+       return table;
+}
 #endif