From 8538aaf655fcfe3974c6487fec5abf5f09a43858 Mon Sep 17 00:00:00 2001 From: Adam Dunkels Date: Mon, 26 Nov 2012 19:34:22 +0100 Subject: [PATCH] Made RPL DAO latency configurable --- core/net/rpl/rpl-private.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/net/rpl/rpl-private.h b/core/net/rpl/rpl-private.h index 808321d21..9dfd91927 100644 --- a/core/net/rpl/rpl-private.h +++ b/core/net/rpl/rpl-private.h @@ -103,7 +103,11 @@ /* Default values for RPL constants and variables. */ /* The default value for the DAO timer. */ +#ifdef RPL_CONF_DAO_LATENCY +#define RPL_DAO_LATENCY RPL_CONF_DAO_LATENCY +#else /* RPL_CONF_DAO_LATENCY */ #define RPL_DAO_LATENCY (CLOCK_SECOND * 4) +#endif /* RPL_DAO_LATENCY */ /* Special value indicating immediate removal. */ #define RPL_ZERO_LIFETIME 0