From 43d394f758d6c6718b54bf0e791eba4551158849 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Sun, 9 Dec 2007 15:44:21 +0000 Subject: [PATCH] Maximum rtmetric now defined by the collect module - a bit of a hack since this probably should be configured elsewhere (and be referenced by both the collect and the neighbor module) but it will do for now --- core/net/rime/neighbor.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/net/rime/neighbor.c b/core/net/rime/neighbor.c index 4996a3b46..bd6390977 100644 --- a/core/net/rime/neighbor.c +++ b/core/net/rime/neighbor.c @@ -33,7 +33,7 @@ * * This file is part of the Contiki operating system. * - * $Id: neighbor.c,v 1.12 2007/11/26 23:30:13 adamdunkels Exp $ + * $Id: neighbor.c,v 1.13 2007/12/09 15:44:21 adamdunkels Exp $ */ /** @@ -49,10 +49,11 @@ #include "contiki.h" #include "net/rime/neighbor.h" #include "net/rime/ctimer.h" +#include "net/rime/collect.h" #define MAX_NEIGHBORS 5 -#define RTMETRIC_MAX 64 +#define RTMETRIC_MAX COLLECT_MAX_DEPTH static struct neighbor neighbors[MAX_NEIGHBORS];