summaryrefslogtreecommitdiff
path: root/mesh/mesh-defs.h
diff options
context:
space:
mode:
authorMichaƂ Lowas-Rzechonek <michal.lowas-rzechonek@silvair.com>2019-07-26 08:36:03 +0200
committerBrian Gix <brian.gix@intel.com>2019-07-26 09:08:58 -0700
commit07e16e8aa69b3030035830c30068841c4deeef3d (patch)
tree03424da273d16bb65475a514f763cb6025669119 /mesh/mesh-defs.h
parent7cd089ea6b792ca9d9f2741e1da3336587ee8383 (diff)
downloadbluez-07e16e8aa69b3030035830c30068841c4deeef3d.tar.gz
mesh: Validate application by comparing composition data
Instead of validating application by enumerating D-Bus objects, create a temporary node instance and check if composition data generated for the temporary matches the node loaded from storage. This allows node validation logic (primary element, mandatory models etc) to be confined in node_generate_comp() function. This also streamlines code implementing Attach(), Join() and CreateNetwork() calls.
Diffstat (limited to 'mesh/mesh-defs.h')
-rw-r--r--mesh/mesh-defs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesh/mesh-defs.h b/mesh/mesh-defs.h
index 82be91d75..d14aa5af3 100644
--- a/mesh/mesh-defs.h
+++ b/mesh/mesh-defs.h
@@ -79,6 +79,8 @@
#define MAX_MODEL_COUNT 0xff
#define MAX_ELE_COUNT 0xff
+#define MAX_MSG_LEN 380
+
#define IS_UNASSIGNED(x) ((x) == UNASSIGNED_ADDRESS)
#define IS_UNICAST(x) (((x) > UNASSIGNED_ADDRESS) && \
((x) < VIRTUAL_ADDRESS_LOW))