X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fcmd-2-11.c;h=363e0f00022984a2b758eca59811017d80bb0e1c;hb=e5add6d004793894ef4c7e047bc0f8885763b205;hp=e2d71a0d1351f848a1df2493b6554e737b303278;hpb=0b50e4b3fb9859af7072adcca784684834e5f8d1;p=lttng-tools.git diff --git a/src/bin/lttng-relayd/cmd-2-11.c b/src/bin/lttng-relayd/cmd-2-11.c index e2d71a0d1..363e0f000 100644 --- a/src/bin/lttng-relayd/cmd-2-11.c +++ b/src/bin/lttng-relayd/cmd-2-11.c @@ -31,7 +31,9 @@ int cmd_create_session_2_11(const struct lttng_buffer_view *payload, char *session_name, char *hostname, - uint32_t *live_timer, bool *snapshot) + uint32_t *live_timer, bool *snapshot, + uint64_t *id_sessiond, lttng_uuid sessiond_uuid, + bool *has_current_chunk, uint64_t *current_chunk_id) { int ret; struct lttcomm_relayd_create_session_2_11 header; @@ -52,6 +54,10 @@ int cmd_create_session_2_11(const struct lttng_buffer_view *payload, header.session_name_len = be32toh(header.session_name_len); header.hostname_len = be32toh(header.hostname_len); header.live_timer = be32toh(header.live_timer); + header.current_chunk_id.value = be64toh(header.current_chunk_id.value); + header.current_chunk_id.is_set = !!header.current_chunk_id.is_set; + + lttng_uuid_copy(sessiond_uuid, header.sessiond_uuid); received_names_size = header.session_name_len + header.hostname_len; if (payload->size < header_len + received_names_size) { @@ -100,6 +106,8 @@ int cmd_create_session_2_11(const struct lttng_buffer_view *payload, *live_timer = header.live_timer; *snapshot = !!header.snapshot; + *current_chunk_id = header.current_chunk_id.value; + *has_current_chunk = header.current_chunk_id.is_set; ret = 0;