freeipa/util/ipa_hostname.h

16 lines
478 B
C
Raw Normal View History

/*
* Copyright (C) 2020 FreeIPA Contributors see COPYING for license
*/
/* FQDN host name length including trailing NULL byte
*
* This may be longer than HOST_NAME_MAX. The hostname (effectively uname()'s
* node name) is limited to 64 characters on Linux. ipa_gethostfqdn() returns
* a FQDN from NSS which can be up to 255 octets including NULL byte.
* Effectively the FQDN is 253 ASCII characters.
*/
#define IPA_HOST_FQDN_LEN 255
const char*
ipa_gethostfqdn(void);