]>
Commit | Line | Data |
---|---|---|
5c193dec | 1 | /* |
b8ae064d | 2 | * Copyright (C) 1996-2023 The Squid Software Foundation and contributors |
5c193dec AJ |
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 | ||
ff9d9458 FC |
9 | #ifndef SQUID_INCLUDE_RFC2181_H |
10 | #define SQUID_INCLUDE_RFC2181_H | |
e1f7507e AJ |
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 | */ | |
f53969cc | 27 | #define RFC2181_MAXHOSTNAMELEN 256 |
e1f7507e | 28 | |
2748e1bd | 29 | /** Back-port macro for old squid code still using SQUIDHOSTNAMELEN without RFC reference. */ |
f53969cc | 30 | #define SQUIDHOSTNAMELEN RFC2181_MAXHOSTNAMELEN |
e1f7507e | 31 | |
ff9d9458 | 32 | #endif /* SQUID_INCLUDE_RFC2181_H */ |
f53969cc | 33 |