Fixed issues with propagation of the route lifetime configuration. Removed deprecated configuration parameters.
This commit is contained in:
parent
baa6578341
commit
b1fea35e47
6 changed files with 47 additions and 48 deletions
|
@ -107,7 +107,7 @@ rpl_add_route(rpl_dag_t *dag, uip_ipaddr_t *prefix, int prefix_len,
|
|||
uip_ipaddr_copy(&rep->nexthop, next_hop);
|
||||
}
|
||||
rep->state.dag = dag;
|
||||
rep->state.lifetime = DEFAULT_ROUTE_LIFETIME;
|
||||
rep->state.lifetime = RPL_LIFETIME(dag, dag->default_lifetime);
|
||||
rep->state.learned_from = RPL_ROUTE_FROM_INTERNAL;
|
||||
|
||||
PRINTF("RPL: Added a route to ");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue