Make some of the rpl examples configurable in non-storing mode
This commit is contained in:
parent
eef233ceab
commit
2fe2a28439
|
@ -31,6 +31,17 @@
|
||||||
#ifndef PROJECT_ROUTER_CONF_H_
|
#ifndef PROJECT_ROUTER_CONF_H_
|
||||||
#define 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
|
#ifndef UIP_FALLBACK_INTERFACE
|
||||||
#define UIP_FALLBACK_INTERFACE rpl_interface
|
#define UIP_FALLBACK_INTERFACE rpl_interface
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -63,4 +63,15 @@
|
||||||
#undef SICSLOWPAN_CONF_FRAG
|
#undef SICSLOWPAN_CONF_FRAG
|
||||||
#define SICSLOWPAN_CONF_FRAG 0
|
#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_ */
|
#endif /* PROJECT_CONF_H_ */
|
||||||
|
|
|
@ -56,4 +56,15 @@
|
||||||
|
|
||||||
#define RPL_CONF_DEFAULT_ROUTE_INFINITE_LIFETIME 1
|
#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
|
||||||
|
|
Loading…
Reference in a new issue