From df32fde58cb1c8066a82b9447d759ea4d12f6a5f Mon Sep 17 00:00:00 2001 From: nifi Date: Wed, 21 Oct 2009 21:25:10 +0000 Subject: [PATCH] Made max number of neighbors configurable --- core/net/rime/neighbor.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/net/rime/neighbor.c b/core/net/rime/neighbor.c index 26a60c45f..07d8fe758 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.18 2009/04/06 21:19:00 adamdunkels Exp $ + * $Id: neighbor.c,v 1.19 2009/10/21 21:25:10 nifi Exp $ */ /** @@ -53,7 +53,11 @@ #include "net/rime/ctimer.h" #include "net/rime/collect.h" +#ifdef NEIGHBOR_CONF_MAX_NEIGHBORS +#define MAX_NEIGHBORS NEIGHBOR_CONF_MAX_NEIGHBORS +#else /* NEIGHBOR_CONF_MAX_NEIGHBORS */ #define MAX_NEIGHBORS 8 +#endif /* NEIGHBOR_CONF_MAX_NEIGHBORS */ #define RTMETRIC_MAX COLLECT_MAX_DEPTH