Skip to content
Snippets Groups Projects
Unverified Commit 8c632b1b authored by Martine Lenders's avatar Martine Lenders Committed by GitHub
Browse files

Merge pull request #8536 from daniel-k/fix/gnrc_src_addr_selection

gnrc/netif: fix source address selection for non-matching prefixes
parents c227ec87 cbc9121a
No related branches found
No related tags found
No related merge requests found
......@@ -874,7 +874,7 @@ static unsigned _match(const gnrc_netif_t *netif, const ipv6_addr_t *addr,
}
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)) {
(match >= best_match)) {
if (idx != NULL) {
*idx = i;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment