From 3cd7835f5c49ebf34af033123d57449d33061234 Mon Sep 17 00:00:00 2001 From: Joakim Eriksson Date: Tue, 22 Feb 2011 18:24:05 +0100 Subject: [PATCH] made DIO parameters configurable --- core/net/rpl/rpl-private.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/core/net/rpl/rpl-private.h b/core/net/rpl/rpl-private.h index 1770ffb64..2f5643058 100644 --- a/core/net/rpl/rpl-private.h +++ b/core/net/rpl/rpl-private.h @@ -131,13 +131,25 @@ /* Default value according to the specification is 3 which means 8 milliseconds, but that is an unreasonable value if using power-saving / duty-cycling */ +#ifdef RPL_CONF_DIO_INTERVAL_MIN +#define DEFAULT_DIO_INTERVAL_MIN RPL_CONF_DIO_INTERVAL_MIN +#else #define DEFAULT_DIO_INTERVAL_MIN 12 +#endif /* Maximum amount of timer doublings. */ +#ifdef RPL_CONF_DIO_INTERVAL_DOUBLINGS +#define DEFAULT_DIO_INTERVAL_DOUBLINGS RPL_CONF_DIO_INTERVAL_DOUBLINGS +#else #define DEFAULT_DIO_INTERVAL_DOUBLINGS 8 +#endif /* Default DIO redundancy. */ +#ifdef RPL_CONF_DIO_REDUNDANCY +#define DEFAULT_DIO_REDUNDANCY RPL_CONF_DIO_REDUNDANCY +#else #define DEFAULT_DIO_REDUNDANCY 10 +#endif /* Expire DAOs from neighbors that do not respond in this time. (seconds) */ #define DAO_EXPIRATION_TIMEOUT 60