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

ipv6/nib: delete router timeout when router is deleted

This commit is contained in:
Fabian Hüßler 2024-02-02 20:54:42 +01:00
parent f8a64e74c4
commit eb1a827e21

View File

@ -376,6 +376,7 @@ _nib_dr_entry_t *_nib_drl_add(const ipv6_addr_t *router_addr, unsigned iface)
void _nib_drl_remove(_nib_dr_entry_t *nib_dr)
{
if (nib_dr->next_hop != NULL) {
_evtimer_del(&nib_dr->rtr_timeout);
nib_dr->next_hop->mode &= ~(_DRL);
_nib_onl_clear(nib_dr->next_hop);
memset(nib_dr, 0, sizeof(_nib_dr_entry_t));