Make some of the rpl examples configurable in non-storing mode

This commit is contained in:
Simon Duquennoy 2016-02-03 19:08:00 +01:00
parent eef233ceab
commit 2fe2a28439
3 changed files with 34 additions and 1 deletions

View File

@ -31,6 +31,17 @@
#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 */
#if RPL_CONF_WITH_NON_STORING
#undef RPL_CONF_WITH_STORING
#define RPL_CONF_WITH_STORING 0
#undef RPL_CONF_MOP
#define RPL_CONF_MOP RPL_MOP_NON_STORING
#endif /* RPL_CONF_WITH_NON_STORING */
#ifndef UIP_FALLBACK_INTERFACE
#define UIP_FALLBACK_INTERFACE rpl_interface
#endif

View File

@ -63,4 +63,15 @@
#undef SICSLOWPAN_CONF_FRAG
#define SICSLOWPAN_CONF_FRAG 0
#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 */
#if RPL_CONF_WITH_NON_STORING
#undef RPL_CONF_WITH_STORING
#define RPL_CONF_WITH_STORING 0
#undef RPL_CONF_MOP
#define RPL_CONF_MOP RPL_MOP_NON_STORING
#endif /* RPL_CONF_WITH_NON_STORING */
#endif /* PROJECT_CONF_H_ */

View File

@ -56,4 +56,15 @@
#define RPL_CONF_DEFAULT_ROUTE_INFINITE_LIFETIME 1
#endif /* PROJECT_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 */
#if RPL_CONF_WITH_NON_STORING
#undef RPL_CONF_WITH_STORING
#define RPL_CONF_WITH_STORING 0
#undef RPL_CONF_MOP
#define RPL_CONF_MOP RPL_MOP_NON_STORING
#endif /* RPL_CONF_WITH_NON_STORING */
#endif