From: Linus Lüssing Date: Tue, 20 Mar 2018 02:13:27 +0000 (+0100) Subject: batman-adv: fix multicast-via-unicast transmission with AP isolation X-Git-Tag: v4.14.45~202 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=110a7c19d9d155342632cc830f0d459f0b7308ac;p=platform%2Fkernel%2Flinux-rpi.git batman-adv: fix multicast-via-unicast transmission with AP isolation [ Upstream commit f8fb3419ead44f9a3136995acd24e35da4525177 ] 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 Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- diff --git a/net/batman-adv/multicast.c b/net/batman-adv/multicast.c index df9e114..fa02fb7 100644 --- a/net/batman-adv/multicast.c +++ b/net/batman-adv/multicast.c @@ -809,8 +809,8 @@ static struct batadv_orig_node * batadv_mcast_forw_tt_node_get(struct batadv_priv *bat_priv, struct ethhdr *ethhdr) { - return batadv_transtable_search(bat_priv, ethhdr->h_source, - ethhdr->h_dest, BATADV_NO_FLAGS); + return batadv_transtable_search(bat_priv, NULL, ethhdr->h_dest, + BATADV_NO_FLAGS); } /**