]> git.karo-electronics.de Git - linux-beck.git/commitdiff
net/ipv4: fix IPv4 multicast over network namespaces
authorBenjamin LaHaise <bcrl@kvack.org>
Tue, 27 Mar 2012 15:55:32 +0000 (15:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Mar 2012 08:45:37 +0000 (04:45 -0400)
When using multicast over a local bridge feeding a number of LXC guests
using veth, the LXC guests are unable to get a response from other guests
when pinging 224.0.0.1.  Multicast packets did not appear to be getting
delivered to the network namespaces of the guest hosts, and further
inspection showed that the incoming route was pointing to the loopback
device of the host, not the guest.  This lead to the wrong network namespace
being picked up by sockets (like ICMP).  Fix this by using the correct
network namespace when creating the inbound route entry.

Signed-off-by: Benjamin LaHaise <bcrl@kvack.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found