]> bbs.cooldavid.org Git - net-next-2.6.git/commit - net/ipv4/ipmr.c
netns: ipmr: enable namespace support in ipv4 multicast routing code
authorBenjamin Thery <benjamin.thery@bull.net>
Thu, 22 Jan 2009 04:56:23 +0000 (04:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Jan 2009 21:57:41 +0000 (13:57 -0800)
commit4feb88e5c694bfe414cbc3ce0e383f7f7038f90b
tree418140ffc541223205b921b9995b981a5cfbc2dd
parentf6bb451476be53d456e73bcfd82356afd680bbb0
netns: ipmr: enable namespace support in ipv4 multicast routing code

This last patch makes the appropriate changes to use and propagate the
network namespace where needed in IPv4 multicast routing code.

This consists mainly in replacing all the remaining init_net occurences
with current netns pointer retrieved from sockets, net devices or
mfc_caches depending on the routines' contexts.

Some routines receive a new 'struct net' parameter to propagate the current
netns:
* vif_add/vif_delete
* ipmr_new_tunnel
* mroute_clean_tables
* ipmr_cache_find
* ipmr_cache_report
* ipmr_cache_unresolved
* ipmr_mfc_add/ipmr_mfc_delete
* ipmr_get_route
* rt_fill_info (in route.c)

Signed-off-by: Benjamin Thery <benjamin.thery@bull.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/mroute.h
net/ipv4/ipmr.c
net/ipv4/route.c