OSDN Git Service

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)
commitf8fb3419ead44f9a3136995acd24e35da4525177
tree19b2eb163f4dad57e3795c08baa2e09c79421451
parentfc04fdb2c8a894283259f5621d31d75610701091
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: 1d8ab8d3c176 ("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