gnrc/nib: Move GNRC_IPV6_NIB_CONF_NO_RTR_SOL to 'CONFIG_' namespace
Also evaluate using IS_ACTIVE macro.
This commit is contained in:
parent
53a522d642
commit
1f20ffc150
@ -227,8 +227,8 @@ extern "C" {
|
||||
*
|
||||
* @warning Only do this if you know what you're doing
|
||||
*/
|
||||
#ifndef GNRC_IPV6_NIB_CONF_NO_RTR_SOL
|
||||
#define GNRC_IPV6_NIB_CONF_NO_RTR_SOL 0
|
||||
#ifndef CONFIG_GNRC_IPV6_NIB_NO_RTR_SOL
|
||||
#define CONFIG_GNRC_IPV6_NIB_NO_RTR_SOL 0
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
||||
@ -1318,7 +1318,7 @@ static void _handle_rtr_timeout(_nib_dr_entry_t *router)
|
||||
|
||||
void _handle_search_rtr(gnrc_netif_t *netif)
|
||||
{
|
||||
#if !GNRC_IPV6_NIB_CONF_NO_RTR_SOL
|
||||
#if !IS_ACTIVE(CONFIG_GNRC_IPV6_NIB_NO_RTR_SOL)
|
||||
gnrc_netif_acquire(netif);
|
||||
if (!(gnrc_netif_is_rtr_adv(netif)) || gnrc_netif_is_6ln(netif)) {
|
||||
uint32_t next_rs = _evtimer_lookup(netif, GNRC_IPV6_NIB_SEARCH_RTR);
|
||||
@ -1343,7 +1343,7 @@ void _handle_search_rtr(gnrc_netif_t *netif)
|
||||
gnrc_netif_release(netif);
|
||||
#else
|
||||
(void)netif;
|
||||
#endif /* !GNRC_IPV6_NIB_CONF_NO_RTR_SOL */
|
||||
#endif /* !CONFIG_GNRC_IPV6_NIB_NO_RTR_SOL */
|
||||
}
|
||||
|
||||
#if IS_ACTIVE(CONFIG_GNRC_IPV6_NIB_DNS)
|
||||
|
||||
@ -14,7 +14,7 @@ USEMODULE += od
|
||||
# deactivate automatically emitted packets from IPv6 neighbor discovery
|
||||
CFLAGS += -DCONFIG_GNRC_IPV6_NIB_ARSM=0
|
||||
CFLAGS += -DCONFIG_GNRC_IPV6_NIB_SLAAC=0
|
||||
CFLAGS += -DGNRC_IPV6_NIB_CONF_NO_RTR_SOL=1
|
||||
CFLAGS += -DCONFIG_GNRC_IPV6_NIB_NO_RTR_SOL=1
|
||||
CFLAGS += -DGNRC_NETIF_ADDRS_NUMOF=16
|
||||
CFLAGS += -DGNRC_NETIF_GROUPS_NUMOF=8
|
||||
CFLAGS += -DLOG_LEVEL=LOG_NONE
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user