diff options
author | Daniel Lezcano <dlezcano@fr.ibm.com> | 2008-03-03 23:33:43 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-03-03 23:33:43 -0800 |
commit | 6cc118bd506ae8c6436f507b838a0e1f6185fec2 (patch) | |
tree | 64c06a8f0c6c5fded8aa4298f5ddb2bfd15cccc0 /include/net | |
parent | dcabb819a6eced95ef531b001e663d0d592c8d9f (diff) | |
download | op-kernel-dev-6cc118bd506ae8c6436f507b838a0e1f6185fec2.zip op-kernel-dev-6cc118bd506ae8c6436f507b838a0e1f6185fec2.tar.gz |
[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')
-rw-r--r-- | include/net/ipv6.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/ipv6.h b/include/net/ipv6.h index 5dc8164..9a00f35 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) { |