1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #18085 from benpicco/ipv6_auto_subnets-pio-flags

gnrc/ipv6_auto_subnets: only use prefixes meant for automatic address configuration
This commit is contained in:
Martine Lenders 2022-05-24 14:23:53 +02:00 committed by GitHub
commit 4599c21b19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -351,6 +351,11 @@ void gnrc_ipv6_nib_rtr_adv_pio_cb(gnrc_netif_t *upstream, const ndp_opt_pi_t *pi
return;
}
/* only consider prefix meant for autonomous address configuration */
if (!(pio->flags & NDP_OPT_PI_FLAGS_A)) {
return;
}
#if IS_USED(MODULE_GNRC_IPV6_AUTO_SUBNETS_SIMPLE)
/* if we are the only router on this bus, we can directly choose a prefix */
_configure_subnets(subnets, 0, upstream, pio);