Re-added hop count to header, fixes related to ETX computation: adv packets do not add a good etx, timedout packets do not restore the neighbor age, removed unused code
This commit is contained in:
parent
ff45f9d2c4
commit
9bd3c0c07c
4 changed files with 46 additions and 94 deletions
|
@ -33,7 +33,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: neighbor.c,v 1.10 2007/11/13 20:39:29 adamdunkels Exp $
|
||||
* $Id: neighbor.c,v 1.11 2007/11/17 10:32:54 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -108,12 +108,11 @@ neighbor_find(rimeaddr_t *addr)
|
|||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
void
|
||||
neighbor_update(struct neighbor *n, u8_t rtmetric, u8_t etx)
|
||||
neighbor_update(struct neighbor *n, u8_t rtmetric)
|
||||
{
|
||||
if(n != NULL) {
|
||||
n->rtmetric = rtmetric;
|
||||
n->time = 0;
|
||||
neighbor_update_etx(n, etx);
|
||||
}
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue