From 08cf5926bc609c8d8c21801a447aa805f163f12f Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Wed, 11 Dec 2024 19:29:45 +0100 Subject: [PATCH] gnrc/ipv6/nib: introduce CONFIG_GNRC_IPV6_NIB_MULTIHOP_P6C_AUTO_ADV --- sys/include/net/gnrc/ipv6/nib/conf.h | 7 +++++++ sys/net/gnrc/network_layer/ipv6/nib/nib.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/sys/include/net/gnrc/ipv6/nib/conf.h b/sys/include/net/gnrc/ipv6/nib/conf.h index 4c61a1f06e..a44cdf40cc 100644 --- a/sys/include/net/gnrc/ipv6/nib/conf.h +++ b/sys/include/net/gnrc/ipv6/nib/conf.h @@ -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 * diff --git a/sys/net/gnrc/network_layer/ipv6/nib/nib.c b/sys/net/gnrc/network_layer/ipv6/nib/nib.c index 3f55961289..f3046b91b9 100644 --- a/sys/net/gnrc/network_layer/ipv6/nib/nib.c +++ b/sys/net/gnrc/network_layer/ipv6/nib/nib.c @@ -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 */