]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd42f8156329d455dd67d479b813de18664af6bfd
treec0161155b8d2dc170ee3727c4b4cd99302f41379
parent62b0bf392d3dbb5fe80e02ce5dbe45b376b24c26
net/ipv4: fix IPv4 multicast over network namespaces

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>
net/ipv4/route.c