add support for defining global host info

Change the '*' in the node info update cmd to refer to host info instead

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau
2021-07-06 19:44:01 +02:00
parent 0029f3ce2e
commit e685db7fa7
9 changed files with 47 additions and 26 deletions

View File

@@ -117,6 +117,11 @@ decode_packet(struct blob_attr *data)
}
fprintf(stderr, "id=%08x, seq=%d\n", msg.id, msg.seq);
if (msg.host_info) {
char *data = blobmsg_format_json(msg.host_info, true);
fprintf(stderr, "\tHost info: %s\n", data);
free(data);
}
blob_for_each_attr(cur, msg.nodes, rem)
decode_node(cur);