mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-26 23:11:19 +01:00
gnrc/netif: _match_to_idx(): don't treat link local differently
Cherry-picked from 811c1ee70eb85d56f42273b831a4e187237b4b08 (#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;
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user