aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDaniel Lezcano <dlezcano@fr.ibm.com>2008-03-04 02:33:43 -0500
committerDavid S. Miller <davem@davemloft.net>2008-03-04 02:33:43 -0500
commit6cc118bd506ae8c6436f507b838a0e1f6185fec2 (patch)
tree64c06a8f0c6c5fded8aa4298f5ddb2bfd15cccc0 /include
parentdcabb819a6eced95ef531b001e663d0d592c8d9f (diff)
[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')
-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);
611extern int snmp6_register_dev(struct inet6_dev *idev); 611extern int snmp6_register_dev(struct inet6_dev *idev);
612extern int snmp6_unregister_dev(struct inet6_dev *idev); 612extern int snmp6_unregister_dev(struct inet6_dev *idev);
613 613
614extern struct rt6_statistics rt6_stats; 614extern struct rt6_statistics *rt6_stats;
615#else 615#else
616static inline int snmp6_register_dev(struct inet6_dev *idev) 616static inline int snmp6_register_dev(struct inet6_dev *idev)
617{ 617{