aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBenjamin Thery <benjamin.thery@bull.net>2008-12-10 19:24:07 -0500
committerDavid S. Miller <davem@davemloft.net>2008-12-10 19:24:07 -0500
commit4a6258a0e33d042e4c84d9dec25d45ddb40a70b3 (patch)
tree5cc24a8d367593b039c32a0d1fa4a64730673542 /include
parent58701ad41105638baa0b38ffe9ac5b10469c1fd3 (diff)
netns: ip6mr: dynamically allocate mfc6_cache_array
Preliminary work to make IPv6 multicast forwarding netns-aware. Dynamically allocates IPv6 multicast forwarding cache, mfc6_cache_array, and moves it to struct netns_ipv6. At the moment, mfc6_cache_array is only referenced in init_net. Replace 'ARRAY_SIZE(mfc6_cache_array)' with mfc6_cache_array size: MFC6_LINES. 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/netns/ipv6.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/netns/ipv6.h b/include/net/netns/ipv6.h
index 4ab0cb01a7a..14c1bbe68a8 100644
--- a/include/net/netns/ipv6.h
+++ b/include/net/netns/ipv6.h
@@ -57,6 +57,7 @@ struct netns_ipv6 {
57 struct sock *igmp_sk; 57 struct sock *igmp_sk;
58#ifdef CONFIG_IPV6_MROUTE 58#ifdef CONFIG_IPV6_MROUTE
59 struct sock *mroute6_sk; 59 struct sock *mroute6_sk;
60 struct mfc6_cache **mfc6_cache_array;
60 struct mif_device *vif6_table; 61 struct mif_device *vif6_table;
61 int maxvif; 62 int maxvif;
62#endif 63#endif