A 16-bit vendor-assigned product version identifier
+ uint16 CRPL [read-only, optional]
+
+ A 16-bit minimum number of replay protection list entries
+
Mesh Element Hierarchy
======================
static void set_defaults(struct mesh_node *node)
{
/* TODO: these values should come from mesh.conf */
- if (!node->comp)
- node->comp = l_new(struct node_composition, 1);
-
- node->comp->crpl = DEFAULT_CRPL;
node->lpn = MESH_MODE_UNSUPPORTED;
node->proxy = MESH_MODE_UNSUPPORTED;
node->friend = MESH_MODE_UNSUPPORTED;
l_debug("path %s", path);
- if (is_new)
+ if (is_new) {
node->comp = l_new(struct node_composition, 1);
+ node->comp->crpl = DEFAULT_CRPL;
+ }
while (l_dbus_message_iter_next_entry(properties, &key, &variant)) {
return false;
node->comp->vid = value;
+
+ } else if (!strcmp(key, "CRPL")) {
+ if (!l_dbus_message_iter_get_variant(&variant, "q",
+ &value))
+ return false;
+
+ if (!is_new && node->comp->crpl != value)
+ return false;
+
+ node->comp->crpl = value;
}
}