This patchset streamlines app validation by creating a temporary node during Join, CreateNetwork and ImportLocalNode calls and then comparing temporary composition data with one generated for already existing node. In case of Attach call, the temporary node is simply added to the list. TODO: Composition data generation needs to validate node structure, checking that: - primary element exists - mandatory models are where they should be - there are no gaps in element indexes - ... possibly a few more things Michał Lowas-Rzechonek (2): mesh: Keep model list sorted and unique mesh: Validate application by comparing composition data mesh/cfgmod-server.c | 14 +- mesh/mesh-defs.h | 2 + mesh/node.c | 453 ++++++++++++++++++------------------------- 3 files changed, 198 insertions(+), 271 deletions(-) -- 2.22.0