1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-22 13:03:54 +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:
fabian18 2022-03-29 10:49:54 +02:00 committed by GitHub
commit c0f26fcaaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)