net: ipv6: Allow user to select number of neighbors

Earlier default was 8, new default is 4.

Change-Id: I99c9d2aae465fd0feb968efa7417cd28bafd73b8
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2016-05-26 12:32:58 +03:00
commit 655eb4b75e
2 changed files with 13 additions and 0 deletions

View file

@ -127,6 +127,15 @@ config NETWORKING_IPV6_NO_ND
Normally ND should be enabled but in order to simplify
the network setup it can be turned off if using
slip and tun device.
config NETWORKING_MAX_NEIGHBORS
int "Max number of neighbors"
depends on NETWORKING
depends on NETWORKING_WITH_IPV6
default 4
help
Specifies the maximum number of neighbors that each node will
be able to handle.
endif
config NETWORKING_WITH_TCP

View file

@ -247,4 +247,8 @@ typedef unsigned int uip_stats_t;
#define UIP_CONF_MAX_CONNECTIONS CONFIG_TCP_MAX_CONNECTIONS
#endif
#if defined(CONFIG_NETWORKING_MAX_NEIGHBORS)
#define NBR_TABLE_CONF_MAX_NEIGHBORS CONFIG_NETWORKING_MAX_NEIGHBORS
#endif
#endif /* __CONTIKI_CONF_H__ */