Simplified configuration of RPL non-storing mode
This commit is contained in:
parent
f26ea34c61
commit
1a7133bbf2
7 changed files with 85 additions and 49 deletions
|
@ -31,16 +31,18 @@
|
|||
#ifndef PROJECT_ROUTER_CONF_H_
|
||||
#define PROJECT_ROUTER_CONF_H_
|
||||
|
||||
#ifndef RPL_CONF_WITH_NON_STORING
|
||||
#define RPL_CONF_WITH_NON_STORING 0 /* Set this to run with non-storing mode */
|
||||
#endif /* RPL_CONF_WITH_NON_STORING */
|
||||
#ifndef WITH_NON_STORING
|
||||
#define WITH_NON_STORING 0 /* Set this to run with non-storing mode */
|
||||
#endif /* WITH_NON_STORING */
|
||||
|
||||
#if RPL_CONF_WITH_NON_STORING
|
||||
#undef RPL_CONF_WITH_STORING
|
||||
#define RPL_CONF_WITH_STORING 0
|
||||
#if WITH_NON_STORING
|
||||
#undef RPL_NS_CONF_LINK_NUM
|
||||
#define RPL_NS_CONF_LINK_NUM 40 /* Number of links maintained at the root */
|
||||
#undef UIP_CONF_MAX_ROUTES
|
||||
#define UIP_CONF_MAX_ROUTES 0 /* No need for routes */
|
||||
#undef RPL_CONF_MOP
|
||||
#define RPL_CONF_MOP RPL_MOP_NON_STORING
|
||||
#endif /* RPL_CONF_WITH_NON_STORING */
|
||||
#define RPL_CONF_MOP RPL_MOP_NON_STORING /* Mode of operation*/
|
||||
#endif /* WITH_NON_STORING */
|
||||
|
||||
#ifndef UIP_FALLBACK_INTERFACE
|
||||
#define UIP_FALLBACK_INTERFACE rpl_interface
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue