From d3eb7da297d188ceddc6a6fb59fef20cf9d80a9e Mon Sep 17 00:00:00 2001 From: harald42 Date: Thu, 28 Nov 2013 11:06:28 +0100 Subject: [PATCH] 20 neighbors with status and routes --- examples/osd/rpl-border-router/border-router.c | 2 +- examples/osd/rpl-border-router/project-conf.h | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/osd/rpl-border-router/border-router.c b/examples/osd/rpl-border-router/border-router.c index 4128cac38..3a13e61bb 100644 --- a/examples/osd/rpl-border-router/border-router.c +++ b/examples/osd/rpl-border-router/border-router.c @@ -79,7 +79,7 @@ AUTOSTART_PROCESSES(&border_router_process,&webserver_nogui_process); */ #define WEBSERVER_CONF_LOADTIME 0 #define WEBSERVER_CONF_FILESTATS 0 -#define WEBSERVER_CONF_NEIGHBOR_STATUS 0 +#define WEBSERVER_CONF_NEIGHBOR_STATUS 1 /* Adding links requires a larger RAM buffer. To avoid static allocation * the stack can be used for formatting; however tcp retransmissions * and multiple connections can result in garbled segments. diff --git a/examples/osd/rpl-border-router/project-conf.h b/examples/osd/rpl-border-router/project-conf.h index 9d9116795..20c6652df 100644 --- a/examples/osd/rpl-border-router/project-conf.h +++ b/examples/osd/rpl-border-router/project-conf.h @@ -35,6 +35,12 @@ #define UIP_FALLBACK_INTERFACE rpl_interface #endif +/* Save some memory for the sky platform. */ +#undef NBR_TABLE_CONF_MAX_NEIGHBORS +#define NBR_TABLE_CONF_MAX_NEIGHBORS 20 +#undef UIP_CONF_MAX_ROUTES +#define UIP_CONF_MAX_ROUTES 20 + #ifndef QUEUEBUF_CONF_NUM #define QUEUEBUF_CONF_NUM 4 #endif