mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
gnrc/nib: don't advertise /128 prefix for auto-configuration
A single IP address will be added as a /128 prefix. It makes sense to advertise it, as neighbors can then know that the address/prefix is on-link. It does however not make sense to advertise the prefix as suitable for auto-configuration. Co-authored-by: Fabian Hüßler <fabian.huessler@st.ovgu.de>
This commit is contained in:
parent
44a9954d32
commit
15f210e4e4
@ -69,7 +69,9 @@ int gnrc_ipv6_nib_pl_set(unsigned iface,
|
||||
(ipv6_addr_match_prefix(&netif->ipv6.addrs[idx], pfx) >= pfx_len)) {
|
||||
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;
|
||||
}
|
||||
#if IS_ACTIVE(CONFIG_GNRC_IPV6_NIB_6LBR) && IS_ACTIVE(CONFIG_GNRC_IPV6_NIB_MULTIHOP_P6C)
|
||||
|
Loading…
Reference in New Issue
Block a user