Fix: lttng_uri structure must be packed as it is used for IPC
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 19 Mar 2019 19:37:28 +0000 (15:37 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 26 Mar 2019 18:41:05 +0000 (14:41 -0400)
commit7f23e028113f1fd285a6ef6cd53310ed6164a87c
treed6cb6a5ea720949ae3e4adf2d4e3cc57aae6b619
parent77927271f4b396ec3cb9e8e380c26d19e3589558
Fix: lttng_uri structure must be packed as it is used for IPC

The lttng_create_session commands send lttng_uri structures over
a UNIX socket. As such, the structure must be packed to preclude
the inclusion of any padding.

Moreover, the 'in_port_t' is replaced by uint16_t and PATH_MAX
is replaced by LTTNG_PATH_MAX to prevent conflicts if both ends
of the IPC are not build with the same toolchain/definitions.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/uri.h
This page took 0.024411 seconds and 4 git commands to generate.