]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: fix multicast-via-unicast transmission with AP isolation
authorLinus Lüssing <linus.luessing@c0d3.blue>
Tue, 20 Mar 2018 02:13:27 +0000 (03:13 +0100)
committerSimon Wunderlich <sw@simonwunderlich.de>
Sat, 24 Mar 2018 09:25:07 +0000 (10:25 +0100)
commitfb3b1351177dec69c1e1393c180133176db02023
tree19b2eb163f4dad57e3795c08baa2e09c79421451
parenta27e272e4cb0aa5f3b5586095722f3b1ab4fdd11
batman-adv: fix multicast-via-unicast transmission with AP isolation

For multicast frames AP isolation is only supposed to be checked on
the receiving nodes and never on the originating one.

Furthermore, the isolation or wifi flag bits should only be intepreted
as such for unicast and never multicast TT entries.

By injecting flags to the multicast TT entry claimed by a single
target node it was verified in tests that this multicast address
becomes unreachable, leading to packet loss.

Omitting the "src" parameter to the batadv_transtable_search() call
successfully skipped the AP isolation check and made the target
reachable again.

Fixes: 6eb44ffbf5cf ("batman-adv: Modified forwarding behaviour for multicast packets")
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