fixed comments
This commit is contained in:
parent
fc4a83085a
commit
e7fc14c7a1
@ -90,7 +90,6 @@ rpl_get_nbr(rpl_parent_t *parent)
|
|||||||
if(lladdr != NULL) {
|
if(lladdr != NULL) {
|
||||||
return nbr_table_get_from_lladdr(ds6_neighbors, lladdr);
|
return nbr_table_get_from_lladdr(ds6_neighbors, lladdr);
|
||||||
} else {
|
} else {
|
||||||
/* do nothing... can not update ETX Since there is no nbr struct */
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -591,7 +590,7 @@ rpl_add_parent(rpl_dag_t *dag, rpl_dio_t *dio, uip_ipaddr_t *addr)
|
|||||||
p->rank = dio->rank;
|
p->rank = dio->rank;
|
||||||
p->dtsn = dio->dtsn;
|
p->dtsn = dio->dtsn;
|
||||||
|
|
||||||
/* check if we have a nbr and if we have no prev link_metric value */
|
/* Check whether we have a neighbor that has not gotten a link metric yet */
|
||||||
if(nbr != NULL && nbr->link_metric == 0) {
|
if(nbr != NULL && nbr->link_metric == 0) {
|
||||||
nbr->link_metric = RPL_INIT_LINK_METRIC * RPL_DAG_MC_ETX_DIVISOR;
|
nbr->link_metric = RPL_INIT_LINK_METRIC * RPL_DAG_MC_ETX_DIVISOR;
|
||||||
}
|
}
|
||||||
|
@ -127,7 +127,7 @@ neighbor_link_callback(rpl_parent_t *p, int status, int numtx)
|
|||||||
|
|
||||||
nbr = rpl_get_nbr(p);
|
nbr = rpl_get_nbr(p);
|
||||||
if(nbr == NULL) {
|
if(nbr == NULL) {
|
||||||
/* No neighbor for this parent - something bad has occured */
|
/* No neighbor for this parent - something bad has occurred */
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user