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:
parent
1bdfbeaaa0
commit
f8de22a985
@ -874,8 +874,7 @@ static int _match_to_idx(const gnrc_netif_t *netif,
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
match = ipv6_addr_match_prefix(&(netif->ipv6.addrs[i]), addr);
|
match = ipv6_addr_match_prefix(&(netif->ipv6.addrs[i]), addr);
|
||||||
if (((match > 64U) || !ipv6_addr_is_link_local(&(netif->ipv6.addrs[i]))) &&
|
if (match > best_match) {
|
||||||
(match >= best_match)) {
|
|
||||||
idx = i;
|
idx = i;
|
||||||
best_match = match;
|
best_match = match;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user