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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user