netns: ipmr: dynamically allocate vif_table

Preliminary work to make IPv6 multicast routing netns-aware.

Dynamically allocate interface table vif_table and move it to
struct netns_ipv4, and update MIF_EXISTS() macro.

At the moment, vif_table is only referenced in init_net.

Signed-off-by: Benjamin Thery <benjamin.thery@bull.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Benjamin Thery
2009-01-22 04:56:16 +00:00
committed by David S. Miller
parent 70a269e6c9
commit cf958ae377
2 changed files with 70 additions and 41 deletions

View File

@ -57,6 +57,8 @@ struct netns_ipv4 {
#ifdef CONFIG_IP_MROUTE
struct sock *mroute_sk;
struct vif_device *vif_table;
int maxvif;
#endif
};
#endif