Considering the Agent Protocol is bumped to v2.0 as of 2.8.x,
this patch revisits the unfortunate decision of communicating
in host-endianness from the session daemon to the agents, and
in big endian from the agents to the session daemon.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
}
memset(&msg, 0, sizeof(msg));
- msg.loglevel_value = event->loglevel_value;
- msg.loglevel_type = event->loglevel_type;
+ msg.loglevel_value = htobe32(event->loglevel_value);
+ msg.loglevel_type = htobe32(event->loglevel_type);
strncpy(msg.name, event->name, sizeof(msg.name));
- msg.filter_expression_length = filter_expression_length;
+ msg.filter_expression_length = htobe32(filter_expression_length);
bytes_to_send = zmalloc(data_size);
if (!bytes_to_send) {