made DIO parameters configurable
This commit is contained in:
parent
68e9fb2a5c
commit
3cd7835f5c
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue