]> 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)
commit5a2f8b79a392578e5fd00640f4e5e28559fac7f2
treec0161155b8d2dc170ee3727c4b4cd99302f41379
parent9974f62d8da0a4eef68f63423120c84dcd81850b
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