From 4dbba4df9a09d8dafb240ab9a294d923af92c1ee Mon Sep 17 00:00:00 2001 From: Simon Duquennoy Date: Tue, 5 Jun 2018 14:07:05 +0200 Subject: [PATCH] Platform native: overprovision routes, neighbor table and queues --- arch/platform/native/contiki-conf.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/platform/native/contiki-conf.h b/arch/platform/native/contiki-conf.h index 8d2c13820..e8177d7b2 100644 --- a/arch/platform/native/contiki-conf.h +++ b/arch/platform/native/contiki-conf.h @@ -78,6 +78,19 @@ typedef unsigned int uip_stats_t; #define NETSTACK_CONF_LINUXRADIO_DEV "wpan0" +/* configure network size and density */ +#ifndef NETSTACK_MAX_ROUTE_ENTRIES +#define NETSTACK_MAX_ROUTE_ENTRIES 300 +#endif /* NETSTACK_MAX_ROUTE_ENTRIES */ +#ifndef NBR_TABLE_CONF_MAX_NEIGHBORS +#define NBR_TABLE_CONF_MAX_NEIGHBORS 300 +#endif /* NBR_TABLE_CONF_MAX_NEIGHBORS */ + +/* configure queues */ +#ifndef QUEUEBUF_CONF_NUM +#define QUEUEBUF_CONF_NUM 64 +#endif /* QUEUEBUF_CONF_NUM */ + #define UIP_CONF_IPV6_QUEUE_PKT 1 #define UIP_ARCH_IPCHKSUM 1