From e4244a29ff73663f674d1a78db5bdf32d78e3af9 Mon Sep 17 00:00:00 2001 From: Oleg Hahm Date: Tue, 17 Nov 2015 11:55:23 +0100 Subject: [PATCH] fib: make FIB size dependent on existence of RPL Also, enables to configure the FIB size from the applicatin --- sys/include/net/gnrc/ipv6.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sys/include/net/gnrc/ipv6.h b/sys/include/net/gnrc/ipv6.h index 8056a134e8..a2ac0e2e30 100644 --- a/sys/include/net/gnrc/ipv6.h +++ b/sys/include/net/gnrc/ipv6.h @@ -83,7 +83,13 @@ extern kernel_pid_t gnrc_ipv6_pid; /** * @brief Maximum number of entries in the IPv6 FIB table. */ -#define GNRC_IPV6_FIB_TABLE_SIZE (20) +#ifndef GNRC_IPV6_FIB_TABLE_SIZE +# ifdef MODULE_GNRC_RPL +# define GNRC_IPV6_FIB_TABLE_SIZE (20) +# else +# define GNRC_IPV6_FIB_TABLE_SIZE (5) +# endif +#endif /** * @brief The forwarding information base (FIB) for the IPv6 stack.