]>
git.ipfire.org Git - thirdparty/squid.git/blob - include/rfc2181.h
2 * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
9 #ifndef _SQUID_INCLUDE_RFC1123_H
10 #define _SQUID_INCLUDE_RFC1123_H
13 \par RFC 2181 section 11:
14 * A full domain name is limited to 255 octets (including the separators).
16 \par RFC 1123 section 2.1:
17 * Host software MUST handle host names of up to 63 characters and
18 * SHOULD handle host names of up to 255 characters.
21 * Also Ref: RFC 1035 Section 3.1 (RFC1035_MAXHOSTNAMESZ)
24 * Squid accepts up to 255 character Hostname and Fully-Qualified Domain Names.
25 * Squid still NULL-terminates its FQDN and hotsname strings.
27 #define RFC2181_MAXHOSTNAMELEN 256
29 /** Back-port macro for old squid code still using SQUIDHOSTNAMELEN without RFC reference. */
30 #define SQUIDHOSTNAMELEN RFC2181_MAXHOSTNAMELEN
32 #endif /* _SQUID_INCLUDE_RFC1123_H */