kernel: bridge, multicast-to-unicast: fix echoes on STA
authorFelix Fietkau <nbd@openwrt.org>
Fri, 18 Sep 2015 12:47:31 +0000 (12:47 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 18 Sep 2015 12:47:31 +0000 (12:47 +0000)
commit1a7def45c600cc0e9d37feff4db05cf572046375
tree80a786294f9f314d6bd02ab27514f714ca4be359
parent5da6c4e57a7253111c354d551c904503f094c1d8
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>
Backport of r46765

git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@47003 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/generic/patches-3.18/645-bridge_multicast_to_unicast.patch