Skip to content

Commit ed2fcae

Browse files
rveerama1jukkar
authored andcommitted
net: rpl: Change default value for NET_RPL_INIT_LINK_METRIC
Current default value for NET_RPL_INIT_LINK_METRIC is 2, changing it to 1. e.g. NET_RPL_MIN_HOP_RANK_INC is 256 and NET_RPL_MC_ETX_DIVISOR is 256. Rank calculation for nodes is rank_increase = CONFIG_NET_RPL_INIT_LINK_METRIC * NET_RPL_MC_ETX_DIVISOR; Which gives 768 for first set of child nodes. It would be good if CONFIG_NET_RPL_INIT_LINK_METRIC value is 1 and nodes ranks will be 245, 512, 768 based on the path they choose. User can absolutely change their configuration to maintain proper ranks. Signed-off-by: Ravi kumar Veeramally <[email protected]>
1 parent e567ca4 commit ed2fcae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/net/ip/Kconfig.rpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ config NET_RPL_MIN_HOP_RANK_INC
195195
config NET_RPL_INIT_LINK_METRIC
196196
int "Initial link metric"
197197
depends on NET_RPL
198-
default 2
198+
default 1
199199
help
200200
Initial metric attributed to a link when the ETX is unknown.
201201

0 commit comments

Comments
 (0)