1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

gnrc/netif: _match_to_idx(): don't treat link local differently

Cherry-picked from 811c1ee70e (#12404)
This commit is contained in:
Kaspar Schleiser 2019-10-09 14:08:17 +02:00 committed by Martine S. Lenders
parent 1bdfbeaaa0
commit f8de22a985

View File

@ -874,8 +874,7 @@ static int _match_to_idx(const gnrc_netif_t *netif,
continue;
}
match = ipv6_addr_match_prefix(&(netif->ipv6.addrs[i]), addr);
if (((match > 64U) || !ipv6_addr_is_link_local(&(netif->ipv6.addrs[i]))) &&
(match >= best_match)) {
if (match > best_match) {
idx = i;
best_match = match;
}