Makes RPL Initial Link Metric configurable

This commit is contained in:
Sébastien Dawans 2013-02-01 08:59:31 +01:00
parent bfc1e816de
commit 95ab192e88
4 changed files with 11 additions and 4 deletions

View file

@ -154,4 +154,13 @@
#define RPL_DIO_REDUNDANCY 10
#endif
/*
* Initial metric attributed to a link when the ETX is unknown
*/
#ifndef RPL_CONF_INIT_LINK_METRIC
#define RPL_INIT_LINK_METRIC NEIGHBOR_INFO_ETX2FIX(5)
#else
#define RPL_INIT_LINK_METRIC NEIGHBOR_INFO_ETX2FIX(RPL_CONF_INIT_LINK_METRIC)
#endif
#endif /* RPL_CONF_H */