diff options
Diffstat (limited to 'net/ipv6/icmp.c')
-rw-r--r-- | net/ipv6/icmp.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/net/ipv6/icmp.c b/net/ipv6/icmp.c index c3bbd8687307..dfe3b37c43e9 100644 --- a/net/ipv6/icmp.c +++ b/net/ipv6/icmp.c | |||
@@ -907,7 +907,7 @@ int icmpv6_err_convert(int type, int code, int *err) | |||
907 | EXPORT_SYMBOL(icmpv6_err_convert); | 907 | EXPORT_SYMBOL(icmpv6_err_convert); |
908 | 908 | ||
909 | #ifdef CONFIG_SYSCTL | 909 | #ifdef CONFIG_SYSCTL |
910 | ctl_table ipv6_icmp_table[] = { | 910 | ctl_table ipv6_icmp_table_template[] = { |
911 | { | 911 | { |
912 | .ctl_name = NET_IPV6_ICMP_RATELIMIT, | 912 | .ctl_name = NET_IPV6_ICMP_RATELIMIT, |
913 | .procname = "ratelimit", | 913 | .procname = "ratelimit", |
@@ -918,5 +918,15 @@ ctl_table ipv6_icmp_table[] = { | |||
918 | }, | 918 | }, |
919 | { .ctl_name = 0 }, | 919 | { .ctl_name = 0 }, |
920 | }; | 920 | }; |
921 | |||
922 | struct ctl_table *ipv6_icmp_sysctl_init(struct net *net) | ||
923 | { | ||
924 | struct ctl_table *table; | ||
925 | |||
926 | table = kmemdup(ipv6_icmp_table_template, | ||
927 | sizeof(ipv6_icmp_table_template), | ||
928 | GFP_KERNEL); | ||
929 | return table; | ||
930 | } | ||
921 | #endif | 931 | #endif |
922 | 932 | ||