Set a high penalty for packet losses.

This commit is contained in:
nvt-se 2010-09-15 15:59:52 +00:00
parent 072f208a29
commit 58db04ee64

View file

@ -28,7 +28,7 @@
*
* 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
@ -49,7 +49,7 @@
#endif /* DEBUG */
#ifndef ETX_CONF_LIMIT
#define ETX_LIMIT 10
#define ETX_LIMIT 31
#else
#define ETX_LIMIT ETX_CONF_LIMIT
#endif /* !ETX_CONF_LIMIT */
@ -57,7 +57,7 @@
#define ETX_SCALE 100
#define ETX_ALPHA 80
#define ETX_FIRST_GUESS 3
#define ETX_LOSS_PENALTY 1
#define ETX_LOSS_PENALTY ETX_LIMIT
#define ETX2FIX(etx) ((etx) << 4)
#define FIX2ETX(fix) ((fix) >> 4)