batman-adv: mcast: avoid redundant multicast TT entries with bridges
authorLinus Lüssing <linus.luessing@c0d3.blue>
Sun, 26 May 2019 16:35:50 +0000 (18:35 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Thu, 27 Jun 2019 17:25:04 +0000 (19:25 +0200)
commit390dcd48cd1a53a81b68a87d0188e6aacc54a199
treeaabced3760d843be484dfbe7b7291911a125364f
parent5c506802ca6e936a283d65110922c1a1415af1d4
batman-adv: mcast: avoid redundant multicast TT entries with bridges

When a bridge is added on top of bat0 we set the WANT_ALL_UNSNOOPABLES
flag. Which means we sign up for all traffic for ff02::1/128 and
224.0.0.0/24.

When the node itself had IPv6 enabled or joined a group in 224.0.0.0/24
itself then so far this would result in a multicast TT entry which is
redundant to the WANT_ALL_UNSNOOPABLES.

With this patch such redundant TT entries are avoided.

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/multicast.c