mesh: Move sequence number overcommit to mesh-config-json
authorMichał Lowas-Rzechonek <michal.lowas-rzechonek@silvair.com>
Wed, 7 Aug 2019 09:58:31 +0000 (11:58 +0200)
committerAnupam Roy <anupam.r@samsung.com>
Tue, 17 Dec 2019 16:28:17 +0000 (21:58 +0530)
commit4c6233d8890e748839458900d9a878cf1103fd42
treed869aa68529f5eb9cf96d37503bc3f4a7c1b41e6
parentd88a0a77224183029d3e2e63afe4576758bf79f9
mesh: Move sequence number overcommit to mesh-config-json

This confines sequence overcommit logic in mesh-config-json, as other
storages might use a different mechanism to ensure reliability.

Also, refactored logic to calculate overcommit value to avoid division
by zero when messages are sent too fast.

Change-Id: Iee73274ff7c5578f1dd07619d0a08e63cb0751f8
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
mesh/mesh-config-json.c
mesh/mesh-config.h
mesh/net.c
mesh/node.c
mesh/node.h