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

gnrc/nib: Move GNRC_IPV6_NIB_CONF_REACH_TIME_RESET to 'CONFIG_'

This commit is contained in:
Leandro Lanzieri 2020-03-12 17:19:08 +01:00
parent 07771de08f
commit acd789bd87
No known key found for this signature in database
GPG Key ID: 39607DE6080007A3
3 changed files with 4 additions and 4 deletions

View File

@ -218,8 +218,8 @@ extern "C" {
*
* @see [RFC 4861, section 6.3.4](https://tools.ietf.org/html/rfc4861#section-6.3.4)
*/
#ifndef GNRC_IPV6_NIB_CONF_REACH_TIME_RESET
#define GNRC_IPV6_NIB_CONF_REACH_TIME_RESET (7200000U)
#ifndef CONFIG_GNRC_IPV6_NIB_REACH_TIME_RESET
#define CONFIG_GNRC_IPV6_NIB_REACH_TIME_RESET (7200000U)
#endif
/**

View File

@ -415,7 +415,7 @@ void _recalc_reach_time(gnrc_netif_ipv6_t *netif)
netif->reach_time_base + half);
_evtimer_add(netif, GNRC_IPV6_NIB_RECALC_REACH_TIME,
&netif->recalc_reach_time,
GNRC_IPV6_NIB_CONF_REACH_TIME_RESET);
CONFIG_GNRC_IPV6_NIB_REACH_TIME_RESET);
}
void _set_reachable(gnrc_netif_t *netif, _nib_onl_entry_t *nce)

View File

@ -681,7 +681,7 @@ static void _handle_rtr_adv(gnrc_netif_t *netif, const ipv6_hdr_t *ipv6,
if (reach_time != netif->ipv6.reach_time_base) {
_evtimer_add(netif, GNRC_IPV6_NIB_RECALC_REACH_TIME,
&netif->ipv6.recalc_reach_time,
GNRC_IPV6_NIB_CONF_REACH_TIME_RESET);
CONFIG_GNRC_IPV6_NIB_REACH_TIME_RESET);
netif->ipv6.reach_time_base = reach_time;
_recalc_reach_time(&netif->ipv6);
}