aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/icmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/icmp.c')
-rw-r--r--net/ipv6/icmp.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/net/ipv6/icmp.c b/net/ipv6/icmp.c
index c3bbd868730..dfe3b37c43e 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)
907EXPORT_SYMBOL(icmpv6_err_convert); 907EXPORT_SYMBOL(icmpv6_err_convert);
908 908
909#ifdef CONFIG_SYSCTL 909#ifdef CONFIG_SYSCTL
910ctl_table ipv6_icmp_table[] = { 910ctl_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
922struct 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