mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
gnrc_ipv6_nib: use router instead of netif for router timeout context
`GNRC_IPV6_NIB_RTR_TIMEOUT` [expects a default router entry][doc] as context, so using the `netif` here is clearly wrong. This causes the hardfault described in #9297. [doc]: http://doc.riot-os.org/group__net__gnrc__ipv6__nib.html#ga1c7e892ef6533f699c4e64737c2847c2
This commit is contained in:
parent
c8f2ae064d
commit
b6ab9eb343
@ -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);
|
||||
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);
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user