diff options
author | Benjamin Thery <benjamin.thery@bull.net> | 2009-01-22 04:56:15 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-22 13:57:34 -0800 |
commit | 70a269e6c9c9b38b1a37dce068c59e9a912f8578 (patch) | |
tree | f39e0615f1a2e6588f620969a1f0a05b616f0b0e /include/net/netns | |
parent | e35fac80ed0bb878f652cc0f70ca268656d275f7 (diff) | |
download | linux-70a269e6c9c9b38b1a37dce068c59e9a912f8578.tar.gz linux-70a269e6c9c9b38b1a37dce068c59e9a912f8578.tar.bz2 linux-70a269e6c9c9b38b1a37dce068c59e9a912f8578.zip |
netns: ipmr: allocate mroute_socket per-namespace.
Preliminary work to make IPv4 multicast routing netns-aware.
Make IPv4 multicast routing mroute_socket per-namespace,
moves it into struct netns_ipv4.
At the moment, mroute_socket 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.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/netns/ipv4.h b/include/net/netns/ipv4.h index 977f482d97a9..4f00722c7478 100644 --- a/include/net/netns/ipv4.h +++ b/include/net/netns/ipv4.h @@ -54,5 +54,9 @@ struct netns_ipv4 { struct timer_list rt_secret_timer; atomic_t rt_genid; + +#ifdef CONFIG_IP_MROUTE + struct sock *mroute_sk; +#endif }; #endif |