Update next-hop address for existing routes.
This commit is contained in:
parent
ef0ce944e5
commit
b405571e32
|
@ -632,14 +632,12 @@ dao_input(void)
|
|||
}
|
||||
}
|
||||
|
||||
if(rep == NULL) {
|
||||
rep = rpl_add_route(dag, &prefix, prefixlen, &dao_sender_addr);
|
||||
if(rep == NULL) {
|
||||
RPL_STAT(rpl_stats.mem_overflows++);
|
||||
PRINTF("RPL: Could not add a route after receiving a DAO\n");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
rep->state.lifetime = RPL_LIFETIME(instance, lifetime);
|
||||
rep->state.learned_from = learned_from;
|
||||
|
|
Loading…
Reference in a new issue