diff --git a/sys/net/gnrc/network_layer/ipv6/nib/_nib-6lr.h b/sys/net/gnrc/network_layer/ipv6/nib/_nib-6lr.h index 60054a703b..44dd896bae 100644 --- a/sys/net/gnrc/network_layer/ipv6/nib/_nib-6lr.h +++ b/sys/net/gnrc/network_layer/ipv6/nib/_nib-6lr.h @@ -118,12 +118,6 @@ gnrc_pktsnip_t *_copy_and_handle_aro(gnrc_netif_t *netif, const ipv6_hdr_t *ipv6 const sixlowpan_nd_opt_ar_t *aro, const ndp_opt_t *sl2ao); -/** - * @brief Sets the @ref GNRC_NETIF_FLAGS_IPV6_RTR_ADV flags of an interface - * - * @param[in] netif The interface. - */ -void _set_rtr_adv(gnrc_netif_t *netif); #else /* CONFIG_GNRC_IPV6_NIB_6LR || defined(DOXYGEN) */ #define _rtr_sol_on_6lr(netif, icmpv6) (false) #define _get_ar_state(nbr) (_ADDR_REG_STATUS_IGNORE) @@ -133,7 +127,6 @@ void _set_rtr_adv(gnrc_netif_t *netif); */ #define _copy_and_handle_aro(netif, ipv6, icmpv6, aro, sl2ao) \ (NULL) -#define _set_rtr_adv(netif) (void)netif #endif /* CONFIG_GNRC_IPV6_NIB_6LR || defined(DOXYGEN) */ #ifdef __cplusplus diff --git a/sys/net/gnrc/network_layer/ipv6/nib/_nib-router.h b/sys/net/gnrc/network_layer/ipv6/nib/_nib-router.h index 51705029f9..1798ee5c40 100644 --- a/sys/net/gnrc/network_layer/ipv6/nib/_nib-router.h +++ b/sys/net/gnrc/network_layer/ipv6/nib/_nib-router.h @@ -46,8 +46,7 @@ static inline void _init_iface_router(gnrc_netif_t *netif) netif->ipv6.ra_sent = 0; netif->flags |= GNRC_NETIF_FLAGS_IPV6_FORWARDING; - if (!IS_ACTIVE(CONFIG_GNRC_IPV6_NIB_6LR) || - IS_ACTIVE(CONFIG_GNRC_IPV6_NIB_6LBR)) { + if (IS_ACTIVE(CONFIG_GNRC_IPV6_NIB_ADV_ROUTER)) { netif->flags |= GNRC_NETIF_FLAGS_IPV6_RTR_ADV; }