kernel: bridge, multicast-to-unicast: fix echoes on STA
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 2 Sep 2015 09:23:59 +0000 (09:23 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 2 Sep 2015 09:23:59 +0000 (09:23 +0000)
commitf9bd42b08d92ea606ef23dd2ef6e69bccf10bc20
tree8263d738041ce974c26bb97087605e79adbb312f
parent9d836d713d055a01cf20950b0ea8b2c14dd5e74f
kernel: bridge, multicast-to-unicast: fix echoes on STA

Currently, multicast packets from an STA are sent to any according
multicast listener directly through the bridge multicast-to-unicast
feature. Unfortunately, so far this includes the originating STA, too,
resulting in multicast packets being echo'ed back to the originating STA
if it itself is a multicast listener for that group.

This behaviour breaks IPv6 duplicate address detection: An IPv6 Neighbor
Solicitation for IPv6 Duplicate Address Detection is being echo'ed back,
resulting in the host falsely detecting an address collision, which
makes the node unable to claim an IPv6 address and use IPv6 in general.

Mac80211 unfortunately only prevents the echoes for us for multicast
frames. For the multicast frames cast to a unicast destination we'll
need to take care of excluding the originator ourselves.

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46765 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/generic/patches-3.18/645-bridge_multicast_to_unicast.patch
target/linux/generic/patches-4.1/645-bridge_multicast_to_unicast.patch