mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-22 04:53:50 +01:00
Merge pull request #17803 from benpicco/gnrc/ipv6/nib-adv_address
gnrc/nib: don't advertise single address for auto-configuration
This commit is contained in:
commit
c0f26fcaaa
@ -69,7 +69,9 @@ int gnrc_ipv6_nib_pl_set(unsigned iface,
|
|||||||
(ipv6_addr_match_prefix(&netif->ipv6.addrs[idx], pfx) >= pfx_len)) {
|
(ipv6_addr_match_prefix(&netif->ipv6.addrs[idx], pfx) >= pfx_len)) {
|
||||||
dst->flags |= _PFX_ON_LINK;
|
dst->flags |= _PFX_ON_LINK;
|
||||||
}
|
}
|
||||||
if (netif->ipv6.aac_mode & GNRC_NETIF_AAC_AUTO) {
|
|
||||||
|
/* Auto-configuration only works if the prefix is more than a single address */
|
||||||
|
if ((netif->ipv6.aac_mode & GNRC_NETIF_AAC_AUTO) && (pfx_len < 128)) {
|
||||||
dst->flags |= _PFX_SLAAC;
|
dst->flags |= _PFX_SLAAC;
|
||||||
}
|
}
|
||||||
#if IS_ACTIVE(CONFIG_GNRC_IPV6_NIB_6LBR) && IS_ACTIVE(CONFIG_GNRC_IPV6_NIB_MULTIHOP_P6C)
|
#if IS_ACTIVE(CONFIG_GNRC_IPV6_NIB_6LBR) && IS_ACTIVE(CONFIG_GNRC_IPV6_NIB_MULTIHOP_P6C)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user