native-border-router: fix for disappearing timer 'uip_ds6_timer_periodic'
When UIP_ND6_SEND_NS is enabled, I've noticed that unreachable neighbours still remains in REACHABLE state even if lifetime (nbr->reachable) expired. During network init 'tcpip_process' is scheduling 'uip_ds6_timer_periodic' is to tick every 100ms and make necessary expirations. When MAC addres is received from slip-radio (from 'etimer_process' context), network is "reinitialized" and timer 'uip_ds6_timer_periodic' is set again with wrong process.
This commit is contained in:
parent
99402348eb
commit
5a0d085451
1 changed files with 2 additions and 0 deletions
|
@ -247,8 +247,10 @@ border_router_set_mac(const uint8_t *data)
|
|||
|
||||
/* is this ok - should instead remove all addresses and
|
||||
add them back again - a bit messy... ?*/
|
||||
PROCESS_CONTEXT_BEGIN(&tcpip_process);
|
||||
uip_ds6_init();
|
||||
rpl_init();
|
||||
PROCESS_CONTEXT_END(&tcpip_process);
|
||||
|
||||
mac_set = 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue