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