Update next-hop address for existing routes.

This commit is contained in:
Nicolas Tsiftes 2011-11-16 09:05:34 +01:00
parent ef0ce944e5
commit b405571e32

View file

@ -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;