Skip to content

Commit 110a7c1

Browse files
T-Xgregkh
authored andcommitted
batman-adv: fix multicast-via-unicast transmission with AP isolation
[ Upstream commit f8fb341 ] 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: 1d8ab8d ("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> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent bbeb1a4 commit 110a7c1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎net/batman-adv/multicast.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -809,8 +809,8 @@ static struct batadv_orig_node *
809809
batadv_mcast_forw_tt_node_get(struct batadv_priv *bat_priv,
810810
struct ethhdr *ethhdr)
811811
{
812-
return batadv_transtable_search(bat_priv, ethhdr->h_source,
813-
ethhdr->h_dest, BATADV_NO_FLAGS);
812+
return batadv_transtable_search(bat_priv, NULL, ethhdr->h_dest,
813+
BATADV_NO_FLAGS);
814814
}
815815

816816
/**

0 commit comments

Comments
 (0)