]> git.ipfire.org Git - thirdparty/squid.git/blob - include/rfc2181.h
Docs: Copyright updates for 2018 (#114)
[thirdparty/squid.git] / include / rfc2181.h
1 /*
2 * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
3 *
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.
7 */
8
9 #ifndef _SQUID_INCLUDE_RFC1123_H
10 #define _SQUID_INCLUDE_RFC1123_H
11
12 /**
13 \par RFC 2181 section 11:
14 * A full domain name is limited to 255 octets (including the separators).
15 *
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.
19 *
20 *\par
21 * Also Ref: RFC 1035 Section 3.1 (RFC1035_MAXHOSTNAMESZ)
22 *
23 \par
24 * Squid accepts up to 255 character Hostname and Fully-Qualified Domain Names.
25 * Squid still NULL-terminates its FQDN and hotsname strings.
26 */
27 #define RFC2181_MAXHOSTNAMELEN 256
28
29 /** Back-port macro for old squid code still using SQUIDHOSTNAMELEN without RFC reference. */
30 #define SQUIDHOSTNAMELEN RFC2181_MAXHOSTNAMELEN
31
32 #endif /* _SQUID_INCLUDE_RFC1123_H */
33