summaryrefslogtreecommitdiffstats
path: root/include/net/ipv6.h
diff options
context:
space:
mode:
authorDaniel Lezcano <dlezcano@fr.ibm.com>2008-03-04 08:33:43 +0100
committerDavid S. Miller <davem@davemloft.net>2008-03-04 08:33:43 +0100
commit6cc118bd506ae8c6436f507b838a0e1f6185fec2 (patch)
tree64c06a8f0c6c5fded8aa4298f5ddb2bfd15cccc0 /include/net/ipv6.h
parent[NETNS][IPV6] fib6_rules - handle several network namespaces (diff)
downloadlinux-6cc118bd506ae8c6436f507b838a0e1f6185fec2.tar.xz
linux-6cc118bd506ae8c6436f507b838a0e1f6185fec2.zip
[NETNS][IPV6] rt6_stats - dynamically allocate the routes statistics
This patch allocates the rt6_stats struct dynamically when the fib6 is initialized. That provides the ability to create several instances of this structure for the network namespaces. Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> Signed-off-by: Benjamin Thery <benjamin.thery@bull.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ipv6.h')
-rw-r--r--include/net/ipv6.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/ipv6.h b/include/net/ipv6.h
index 5dc8164e5d3b..9a00f35ae773 100644
--- a/include/net/ipv6.h
+++ b/include/net/ipv6.h
@@ -611,7 +611,7 @@ extern void ipv6_misc_proc_exit(void);
extern int snmp6_register_dev(struct inet6_dev *idev);
extern int snmp6_unregister_dev(struct inet6_dev *idev);
-extern struct rt6_statistics rt6_stats;
+extern struct rt6_statistics *rt6_stats;
#else
static inline int snmp6_register_dev(struct inet6_dev *idev)
{