mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #12405 from miri64/gnrc_netif/fix/deprecated-src-selection
gnrc_netif: avoid deprecated as source addresses, don't prefer them!
This commit is contained in:
commit
80cbf1b523
@ -1042,7 +1042,7 @@ static ipv6_addr_t *_src_addr_selection(gnrc_netif_t *netif,
|
||||
}
|
||||
}
|
||||
/* 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");
|
||||
winner_set[i] += RULE_3_PTS;
|
||||
if (winner_set[i] > max_pts) {
|
||||
|
Loading…
Reference in New Issue
Block a user