diff --git a/sys/include/net/gnrc/rpl.h b/sys/include/net/gnrc/rpl.h index f6042edc2d..60a9c85671 100644 --- a/sys/include/net/gnrc/rpl.h +++ b/sys/include/net/gnrc/rpl.h @@ -188,8 +188,8 @@ extern "C" { /** * @brief Maximum rank increase */ -#ifndef GNRC_RPL_DEFAULT_MAX_RANK_INCREASE -#define GNRC_RPL_DEFAULT_MAX_RANK_INCREASE (0) +#ifndef CONFIG_GNRC_RPL_DEFAULT_MAX_RANK_INCREASE +#define CONFIG_GNRC_RPL_DEFAULT_MAX_RANK_INCREASE (0) #endif /** diff --git a/sys/net/gnrc/routing/rpl/gnrc_rpl_dodag.c b/sys/net/gnrc/routing/rpl/gnrc_rpl_dodag.c index 1923009744..36892e7447 100644 --- a/sys/net/gnrc/routing/rpl/gnrc_rpl_dodag.c +++ b/sys/net/gnrc/routing/rpl/gnrc_rpl_dodag.c @@ -87,7 +87,7 @@ bool gnrc_rpl_instance_add(uint8_t instance_id, gnrc_rpl_instance_t **inst) if (*inst != NULL) { (*inst)->id = instance_id; (*inst)->state = 1; - (*inst)->max_rank_inc = GNRC_RPL_DEFAULT_MAX_RANK_INCREASE; + (*inst)->max_rank_inc = CONFIG_GNRC_RPL_DEFAULT_MAX_RANK_INCREASE; (*inst)->min_hop_rank_inc = CONFIG_GNRC_RPL_DEFAULT_MIN_HOP_RANK_INCREASE; (*inst)->dodag.parents = NULL; (*inst)->cleanup_event.msg.content.ptr = (*inst); @@ -389,7 +389,7 @@ gnrc_rpl_instance_t *gnrc_rpl_root_instance_init(uint8_t instance_id, ipv6_addr_ inst->of = (gnrc_rpl_of_t *) gnrc_rpl_get_of_for_ocp(GNRC_RPL_DEFAULT_OCP); inst->mop = mop; inst->min_hop_rank_inc = CONFIG_GNRC_RPL_DEFAULT_MIN_HOP_RANK_INCREASE; - inst->max_rank_inc = GNRC_RPL_DEFAULT_MAX_RANK_INCREASE; + inst->max_rank_inc = CONFIG_GNRC_RPL_DEFAULT_MAX_RANK_INCREASE; } else if (inst == NULL) { DEBUG("RPL: could not allocate memory for a new instance with id %d\n", instance_id);