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

gnrc/ipv6/nib: introduce CONFIG_GNRC_IPV6_NIB_MULTIHOP_P6C_AUTO_ADV

This commit is contained in:
Benjamin Valentin 2024-12-11 19:29:45 +01:00
parent 314968cf86
commit 08cf5926bc
2 changed files with 8 additions and 1 deletions

View File

@ -233,6 +233,13 @@ extern "C" {
#endif
#endif
/**
* @brief Start sending RAs when a RA has been received
*/
#ifndef CONFIG_GNRC_IPV6_NIB_MULTIHOP_P6C_AUTO_ADV
#define CONFIG_GNRC_IPV6_NIB_MULTIHOP_P6C_AUTO_ADV CONFIG_GNRC_IPV6_NIB_MULTIHOP_P6C
#endif
/**
* @brief Multihop duplicate address detection
*

View File

@ -920,7 +920,7 @@ static void _handle_rtr_adv(gnrc_netif_t *netif, const ipv6_hdr_t *ipv6,
}
#if IS_ACTIVE(CONFIG_GNRC_IPV6_NIB_6LN)
if (gnrc_netif_is_6ln(netif) && !gnrc_netif_is_6lbr(netif)) {
if (IS_ACTIVE(CONFIG_GNRC_IPV6_NIB_MULTIHOP_P6C)) {
if (IS_ACTIVE(CONFIG_GNRC_IPV6_NIB_MULTIHOP_P6C_AUTO_ADV)) {
_set_rtr_adv(netif);
}
/* but re-fetch information from router in time */