Skip to content

Commit

Permalink
changed ext to link_metric
Browse files Browse the repository at this point in the history
  • Loading branch information
Joakim Eriksson committed Mar 28, 2011
1 parent 4e8b4e4 commit 26f0a6e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/net/rpl/rpl-of0.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,16 @@ best_parent(rpl_parent_t *p1, rpl_parent_t *p2)
PRINTF("RPL: Comparing parent ");
PRINT6ADDR(&p1->addr);
PRINTF(" (confidence %d, rank %d) with parent ",
p1->etx, p1->rank);
p1->link_metric, p1->rank);
PRINT6ADDR(&p2->addr);
PRINTF(" (confidence %d, rank %d)\n",
p2->etx, p2->rank);
p2->link_metric, p2->rank);


r1 = DAG_RANK(p1->rank, (rpl_dag_t *)p1->dag) * NEIGHBOR_INFO_ETX_DIVISOR +
p1->etx;
p1->link_metric;
r2 = DAG_RANK(p2->rank, (rpl_dag_t *)p1->dag) * NEIGHBOR_INFO_ETX_DIVISOR +
p2->etx;
p2->link_metric;
/* Compare two parents by looking both and their rank and at the ETX
for that parent. We choose the parent that has the most
favourable combination. */
Expand Down

0 comments on commit 26f0a6e

Please sign in to comment.