Add configuration of DIS interval and DIS start delay to rpl-conf.h

Make a define for configuration of DIS start delay and move it + existing DIS interval conf into RPL-conf.h
This commit is contained in:
Andreas Urke 2015-10-19 17:15:54 +02:00
parent 6037e269a8
commit 8159297bfd
2 changed files with 19 additions and 6 deletions

View file

@ -296,4 +296,22 @@
+ random_rand() % (RPL_PROBING_INTERVAL))
#endif
/*
* Interval of DIS transmission
*/
#ifdef RPL_CONF_DIS_INTERVAL
#define RPL_DIS_INTERVAL RPL_CONF_DIS_INTERVAL
#else
#define RPL_DIS_INTERVAL 60
#endif
/*
* Added delay of first DIS transmission after boot
*/
#ifdef RPL_CONF_DIS_START_DELAY
#define RPL_DIS_START_DELAY RPL_CONF_DIS_START_DELAY
#else
#define RPL_DIS_START_DELAY 5
#endif
#endif /* RPL_CONF_H */

View file

@ -184,12 +184,7 @@
/* DIS related */
#define RPL_DIS_SEND 1
#ifdef RPL_DIS_INTERVAL_CONF
#define RPL_DIS_INTERVAL RPL_DIS_INTERVAL_CONF
#else
#define RPL_DIS_INTERVAL 60
#endif
#define RPL_DIS_START_DELAY 5
/*---------------------------------------------------------------------------*/
/* Lollipop counters */