mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #9300 from miri64/gnrc_ipv6_nib/fix/rtr-timeout-wrong-ctx
gnrc_ipv6_nib: use router instead of netif for router timeout context
This commit is contained in:
commit
c135f2639e
@ -606,7 +606,7 @@ static void _handle_rtr_adv(gnrc_netif_t *netif, const ipv6_hdr_t *ipv6,
|
|||||||
|
|
||||||
dr = _nib_drl_add(&ipv6->src, netif->pid);
|
dr = _nib_drl_add(&ipv6->src, netif->pid);
|
||||||
if (dr != NULL) {
|
if (dr != NULL) {
|
||||||
_evtimer_add(netif, GNRC_IPV6_NIB_RTR_TIMEOUT, &dr->rtr_timeout,
|
_evtimer_add(dr, GNRC_IPV6_NIB_RTR_TIMEOUT, &dr->rtr_timeout,
|
||||||
rtr_ltime * MS_PER_SEC);
|
rtr_ltime * MS_PER_SEC);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user