From ee64780cb64faee3d39d98bee18428860978e226 Mon Sep 17 00:00:00 2001 From: Adam Dunkels Date: Sun, 17 Mar 2013 23:52:14 +0100 Subject: [PATCH] Allow proactive probing interval to be configured --- core/net/rime/collect.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/net/rime/collect.c b/core/net/rime/collect.c index 6f16b4b4d..d225e1574 100644 --- a/core/net/rime/collect.c +++ b/core/net/rime/collect.c @@ -157,7 +157,11 @@ MEMB(send_queue_memb, struct packetqueue_item, MAX_SENDING_QUEUE); queue, the system periodically sends a dummy packet to potential parents, i.e., neighbors with a lower rtmetric than we have but for which we do not yet have a link quality estimate. */ +#ifdef COLLECT_CONF_PROACTIVE_PROBING_INTERVAL +#define PROACTIVE_PROBING_INTERVAL (random_rand() % (2 * COLLECT_CONF_PROACTIVE_PROBING_INTERVAL)) +#else /* COLLECT_CONF_PROACTIVE_PROBING_INTERVAL */ #define PROACTIVE_PROBING_INTERVAL (random_rand() % CLOCK_SECOND * 60) +#endif /* COLLECT_CONF_PROACTIVE_PROBING_INTERVAL */ #define PROACTIVE_PROBING_REXMITS 15 /* The ANNOUNCEMENT_SCAN_TIME defines for how long the Collect