summaryrefslogtreecommitdiffstats
path: root/include/net/netns
diff options
context:
space:
mode:
authorBenjamin Thery <benjamin.thery@bull.net>2009-01-22 04:56:18 +0000
committerDavid S. Miller <davem@davemloft.net>2009-01-22 13:57:38 -0800
commit2bb8b26c3ea8bde1943dc5cd4dda2dc9f48fb281 (patch)
treedacd8256827d6539ff79162cbf8fad2873835126 /include/net/netns
parent5c0a66f5f3c9c59e2c341400048e2cff768e67a9 (diff)
downloadlinux-2bb8b26c3ea8bde1943dc5cd4dda2dc9f48fb281.tar.gz
linux-2bb8b26c3ea8bde1943dc5cd4dda2dc9f48fb281.tar.bz2
linux-2bb8b26c3ea8bde1943dc5cd4dda2dc9f48fb281.zip
netns: ipmr: dynamically allocate mfc_cache_array
Preliminary work to make IPv4 multicast routing netns-aware. Dynamically allocate IPv4 multicast forwarding cache, mfc_cache_array, and move it to struct netns_ipv4. At the moment, mfc_cache_array is only referenced in init_net. Signed-off-by: Benjamin Thery <benjamin.thery@bull.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/netns')
-rw-r--r--include/net/netns/ipv4.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/netns/ipv4.h b/include/net/netns/ipv4.h
index edbcccbbc318..0b4285ac29d4 100644
--- a/include/net/netns/ipv4.h
+++ b/include/net/netns/ipv4.h
@@ -57,6 +57,7 @@ struct netns_ipv4 {
#ifdef CONFIG_IP_MROUTE
struct sock *mroute_sk;
+ struct mfc_cache **mfc_cache_array;
struct vif_device *vif_table;
int maxvif;
#endif