X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Flttng-relayd.h;h=2a442b0952cbb4b14870434a78f0f0aa3253c105;hp=bec13496ca26ab5944853bb0dacadebeb8b2436f;hb=c5b6f4f08fe8d1abff74c7f6ad3630b7dcf0669d;hpb=9d1bbf2176ae0e362428b920e34b05158027da26 diff --git a/src/bin/lttng-relayd/lttng-relayd.h b/src/bin/lttng-relayd/lttng-relayd.h index bec13496c..2a442b095 100644 --- a/src/bin/lttng-relayd/lttng-relayd.h +++ b/src/bin/lttng-relayd/lttng-relayd.h @@ -42,7 +42,6 @@ enum connection_type { struct relay_session { uint64_t id; struct lttcomm_sock *sock; - unsigned int version_check_done:1; }; /* @@ -50,11 +49,15 @@ struct relay_session { */ struct relay_stream { uint64_t stream_handle; - uint64_t seq; + uint64_t prev_seq; /* previous data sequence number encountered */ struct lttng_ht_node_ulong stream_n; struct relay_session *session; struct rcu_head rcu_node; int fd; + + /* Information telling us when to close the stream */ + unsigned int close_flag:1; + uint64_t last_net_seq_num; }; /* @@ -68,6 +71,7 @@ struct relay_command { struct lttng_ht_node_ulong sock_n; struct rcu_head rcu_node; enum connection_type type; + unsigned int version_check_done:1; }; #endif /* LTTNG_RELAYD_H */