kernel: bridge, multicast-to-unicast: fix echoes on STA
authorFelix Fietkau <nbd@openwrt.org>
Wed, 2 Sep 2015 09:23:59 +0000 (09:23 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 2 Sep 2015 09:23:59 +0000 (09:23 +0000)
commit0ec12fc1ebbbc4c5492fb16814b21db46634ba33
tree8263d738041ce974c26bb97087605e79adbb312f
parent63dea99845acf7408335c844575c4eea86ca45fa
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>
SVN-Revision: 46765
target/linux/generic/patches-3.18/645-bridge_multicast_to_unicast.patch
target/linux/generic/patches-4.1/645-bridge_multicast_to_unicast.patch