Changed the name of macros defined in neighbor-info.h to have the NEIGHBOR_INFO prefix.
This commit is contained in:
parent
ed3995960d
commit
acb5480aa9
|
@ -94,7 +94,7 @@ static rpl_of_t * const objective_functions[] = {&RPL_OF};
|
||||||
#define RPL_DIO_INTERVAL_DOUBLINGS RPL_CONF_DIO_INTERVAL_DOUBLINGS
|
#define RPL_DIO_INTERVAL_DOUBLINGS RPL_CONF_DIO_INTERVAL_DOUBLINGS
|
||||||
#endif /* !RPL_CONF_DIO_INTERVAL_DOUBLINGS */
|
#endif /* !RPL_CONF_DIO_INTERVAL_DOUBLINGS */
|
||||||
|
|
||||||
#define INITIAL_ETX ETX_DIVISOR * 5
|
#define INITIAL_ETX NEIGHBOR_INFO_ETX_DIVISOR * 5
|
||||||
|
|
||||||
/************************************************************************/
|
/************************************************************************/
|
||||||
/* Allocate parents from the same static MEMB chunk to reduce memory waste. */
|
/* Allocate parents from the same static MEMB chunk to reduce memory waste. */
|
||||||
|
|
|
@ -112,9 +112,9 @@ calculate_rank(rpl_parent_t *p, rpl_rank_t base_rank)
|
||||||
rank_increase = INITIAL_LINK_METRIC * DEFAULT_MIN_HOPRANKINC;
|
rank_increase = INITIAL_LINK_METRIC * DEFAULT_MIN_HOPRANKINC;
|
||||||
} else {
|
} else {
|
||||||
if(p->etx == 0) {
|
if(p->etx == 0) {
|
||||||
p->etx = INITIAL_LINK_METRIC * ETX_DIVISOR;
|
p->etx = INITIAL_LINK_METRIC * NEIGHBOR_INFO_ETX_DIVISOR;
|
||||||
}
|
}
|
||||||
rank_increase = (p->etx * p->dag->min_hoprankinc) / ETX_DIVISOR;
|
rank_increase = (p->etx * p->dag->min_hoprankinc) / NEIGHBOR_INFO_ETX_DIVISOR;
|
||||||
if(base_rank == 0) {
|
if(base_rank == 0) {
|
||||||
base_rank = p->rank;
|
base_rank = p->rank;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue