Export fix-point representation of the ETX. Make RPL temporarily use the same representation as before.

This commit is contained in:
nvt-se 2010-10-22 13:50:13 +00:00
parent 8cd27a3edb
commit 86823a84fb
3 changed files with 17 additions and 8 deletions

View file

@ -32,7 +32,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: rpl.c,v 1.9 2010/09/20 15:30:12 joxe Exp $
* $Id: rpl.c,v 1.10 2010/10/22 13:50:13 nvt-se Exp $
*/
/**
* \file
@ -123,6 +123,8 @@ rpl_link_neighbor_callback(const rimeaddr_t *addr, int known, int etx)
rpl_dag_t *dag;
rpl_parent_t *parent;
etx = FIX2ETX(etx);
uip_ip6addr(&ipaddr, 0xfe80, 0, 0, 0, 0, 0, 0, 0);
uip_ds6_set_addr_iid(&ipaddr, (uip_lladdr_t *)addr);
PRINTF("RPL: Neighbor ");