1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-23 21:43:51 +01:00

gnrc/ipv6_auto_subnets: only use prefix meant for address configuration

This commit is contained in:
Benjamin Valentin 2022-05-10 16:41:20 +02:00
parent 59ec6f1ccd
commit 1c1cb481da

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