X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng%2Fconstant.h;h=1235c346f5432865d18fe4c134cf4dfdd10e1b92;hp=00074a2e43ec2ba68c0652f2991ab9b74fd39bf8;hb=b867041c62b48e89c9f00430cde4c33f13a2da09;hpb=434131e45c3b55d74c3feec8b21b0979eecc8671 diff --git a/include/lttng/constant.h b/include/lttng/constant.h index 00074a2e4..1235c346f 100644 --- a/include/lttng/constant.h +++ b/include/lttng/constant.h @@ -56,7 +56,14 @@ #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