POSIX guarantees that a host name will not exceed 255 characters.
Moreover, RFC 1035 limits the length of a fully qualified domain name (FQDN)
to 255 characters.
This limit will be used as part of the lttngctl communication
protocol.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
#define LTTNG_NAME_MAX 255
-#define LTTNG_HOST_NAME_MAX 64
+/*
+ * POSIX guarantees that a host name will not exceed 255 characters.
+ * Moreover, RFC 1035 limits the length of a fully qualified domain name (FQDN)
+ * to 255 characters.
+ *
+ * 256 is used to include a trailing NULL character.
+ */
+#define LTTNG_HOST_NAME_MAX 256
#define LTTNG_PATH_MAX 4096