Set a high penalty for packet losses.
This commit is contained in:
parent
072f208a29
commit
58db04ee64
1 changed files with 3 additions and 3 deletions
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* $Id: neighbor-info.c,v 1.10 2010/09/15 15:10:25 nvt-se Exp $
|
* $Id: neighbor-info.c,v 1.11 2010/09/15 15:59:52 nvt-se Exp $
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
* \file
|
* \file
|
||||||
|
@ -49,7 +49,7 @@
|
||||||
#endif /* DEBUG */
|
#endif /* DEBUG */
|
||||||
|
|
||||||
#ifndef ETX_CONF_LIMIT
|
#ifndef ETX_CONF_LIMIT
|
||||||
#define ETX_LIMIT 10
|
#define ETX_LIMIT 31
|
||||||
#else
|
#else
|
||||||
#define ETX_LIMIT ETX_CONF_LIMIT
|
#define ETX_LIMIT ETX_CONF_LIMIT
|
||||||
#endif /* !ETX_CONF_LIMIT */
|
#endif /* !ETX_CONF_LIMIT */
|
||||||
|
@ -57,7 +57,7 @@
|
||||||
#define ETX_SCALE 100
|
#define ETX_SCALE 100
|
||||||
#define ETX_ALPHA 80
|
#define ETX_ALPHA 80
|
||||||
#define ETX_FIRST_GUESS 3
|
#define ETX_FIRST_GUESS 3
|
||||||
#define ETX_LOSS_PENALTY 1
|
#define ETX_LOSS_PENALTY ETX_LIMIT
|
||||||
|
|
||||||
#define ETX2FIX(etx) ((etx) << 4)
|
#define ETX2FIX(etx) ((etx) << 4)
|
||||||
#define FIX2ETX(fix) ((fix) >> 4)
|
#define FIX2ETX(fix) ((fix) >> 4)
|
||||||
|
|
Loading…
Reference in a new issue