2 * IRC - Internet Relay Chat, include/ircd_defs.h
3 * Copyright (C) 1990 Jarkko Oikarinen and
4 * University of Oulu, Computing Center
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 * Commentary by Bleep (Thomas Helvey)
24 #ifndef INCLUDED_ircd_defs_h
25 #define INCLUDED_ircd_defs_h
27 * Definitions used everywhere in the server
28 * NOTE: Changing any of these definitions is equivalent to a protocol
29 * revision. Every server on a given network must also use the same sizes.
33 * NICKLEN is the maximum length allowed for a nickname
37 * USERLEN is the maximum length allowed of a user name including an optional
38 * leading '~' if the user name has not been authenticated by an auth (RFC 931)
43 * HOSTLEN is exactly long enough to hold one (1) segment of FQDN or hostname.
44 * This is due to an historical misinterpretation of RFC 1034.
45 * 3.1. Name space specifications and terminology
47 * The domain name space is a tree structure. Each node and leaf on the
48 * tree corresponds to a resource set (which may be empty). The domain
49 * system makes no distinctions between the uses of the interior nodes and
50 * leaves, and this memo uses the term "node" to refer to both.
52 * Each node has a label, which is zero to 63 octets in length. Brother
53 * nodes may not have the same label, although the same label can be used
54 * for nodes which are not brothers. One label is reserved, and that is
55 * the null (i.e., zero length) label used for the root.
57 * This has proven not to be a problem in the past as connections with FQDN's
58 * of greater than 63 characters are rejected by the server, and most FQDN's
59 * are shorter. It is possible to have a valid FQDN longer than 63 characters.
63 * REALLEN is the maximum length for user supplied information about a client
64 * connection (gcos). This information is set at client/server registration
69 * PASSWDLEN is the maximum length for a password used for connecting servers
74 * SOCKIPLEN is the length of a dotted quad ip address "XXX.XXX.XXX.XXX"
78 * TOPICLEN is the maximum length for channel topics, kill comments,
83 * BUFSIZE is exactly long enough to hold one protocol message (RFC 1459)
84 * including the line termination (\r\n).
86 #define BUFSIZE 512 /* WARNING: *DONT* CHANGE THIS!!!! */
89 #define STARTTARGETS 10
90 #define RESERVEDTARGETS 12
92 #endif /* INCLUDED_ircd_defs_h */