]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
batman-adv: Fix multicast packet loss with a single WANT_ALL_IPV4/6 flag
authorLinus Lüssing <linus.luessing@c0d3.blue>
Sun, 4 Mar 2018 12:08:17 +0000 (13:08 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 27 Aug 2018 14:40:05 +0000 (16:40 +0200)
commit0fa9f3b62c085032fa07abde225ed4cebd6eca94
tree9362356473131fd2f181c375ad3d9d896c9b9155
parent7e536d6d3a0606e00c8e2f1e0e86b259e9b05d0e
batman-adv: Fix multicast packet loss with a single WANT_ALL_IPV4/6 flag

BugLink: http://bugs.launchpad.net/bugs/1786352
[ Upstream commit 74c12c630fe310eb7fcae1b292257d47781fff0a ]

As the kernel doc describes too the code is supposed to skip adding
multicast TT entries if both the WANT_ALL_IPV4 and WANT_ALL_IPV6 flags
are present.

Unfortunately, the current code even skips adding multicast TT entries
if only either the WANT_ALL_IPV4 or WANT_ALL_IPV6 is present.

This could lead to IPv6 multicast packet loss if only an IGMP but not an
MLD querier is present for instance or vice versa.

Fixes: 687937ab3489 ("batman-adv: Add multicast optimization support for bridged setups")
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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
net/batman-adv/multicast.c