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:
parent
07771de08f
commit
acd789bd87
@ -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
|
||||
|
||||
/**
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user