X-Git-Url: https://bbs.cooldavid.org/git/?a=blobdiff_plain;f=net%2Fipv6%2Ficmp.c;h=dfe3b37c43e9dad8f111c81e1319f67b82caab90;hb=760f2d0186225f06d46e07232d65219c5055cad3;hp=c3bbd8687307368f232999b5b7b22afb4da7f8a4;hpb=89918fc270bb77cb1a0703f0ea566a692b32e324;p=net-next-2.6.git 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) 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