gnrc_netif: avoid deprecated addresses, don't prefer them!
This commit is contained in:
parent
3e0a3b1746
commit
ada7c0b7db
@ -1042,7 +1042,7 @@ static ipv6_addr_t *_src_addr_selection(gnrc_netif_t *netif,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* Rule 3: Avoid deprecated addresses. */
|
/* Rule 3: Avoid deprecated addresses. */
|
||||||
if (_get_state(netif, i) == GNRC_NETIF_IPV6_ADDRS_FLAGS_STATE_DEPRECATED) {
|
if (_get_state(netif, i) != GNRC_NETIF_IPV6_ADDRS_FLAGS_STATE_DEPRECATED) {
|
||||||
DEBUG("winner for rule 3 found\n");
|
DEBUG("winner for rule 3 found\n");
|
||||||
winner_set[i] += RULE_3_PTS;
|
winner_set[i] += RULE_3_PTS;
|
||||||
if (winner_set[i] > max_pts) {
|
if (winner_set[i] > max_pts) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user