X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Furi.h;h=17b0419181d68dc6c2747555503bdb869f097b56;hp=3ef6669e6097d6ead83f4fa95d2fb6dbed5fcbbf;hb=7f23e028113f1fd285a6ef6cd53310ed6164a87c;hpb=77927271f4b396ec3cb9e8e380c26d19e3589558;ds=sidebyside diff --git a/src/common/uri.h b/src/common/uri.h index 3ef6669e6..17b041918 100644 --- a/src/common/uri.h +++ b/src/common/uri.h @@ -20,6 +20,7 @@ #include #include +#include /* Destination type of lttng URI */ enum lttng_dst_type { @@ -65,14 +66,14 @@ struct lttng_uri { enum lttng_uri_type utype; enum lttng_stream_type stype; enum lttng_proto_type proto; - in_port_t port; - char subdir[PATH_MAX]; + uint16_t port; + char subdir[LTTNG_PATH_MAX]; union { char ipv4[INET_ADDRSTRLEN]; char ipv6[INET6_ADDRSTRLEN]; - char path[PATH_MAX]; + char path[LTTNG_PATH_MAX]; } dst; -}; +} LTTNG_PACKED; int uri_compare(struct lttng_uri *uri1, struct lttng_uri *uri2); void uri_free(struct lttng_uri *uri);