ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/include/ircd_defs.h
Revision: 6497
Committed: Sat Sep 5 17:13:43 2015 UTC (8 years, 7 months ago) by michael
Content type: text/x-chdr
File size: 2776 byte(s)
Log Message:
- ircd_defs.h: minor correction to the USERHOST_REPLYLEN definition

File Contents

# Content
1 /*
2 * ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd)
3 *
4 * Copyright (c) 1997-2015 ircd-hybrid development team
5 *
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 of the License, or
9 * (at your option) any later version.
10 *
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.
15 *
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
19 * USA
20 */
21
22 /*! \file ircd_defs.h
23 * \brief A header for ircd global definitions.
24 * \version $Id$
25 */
26
27 /* ircd_defs.h - Global size definitions for record entries used
28 * througout ircd. Please think 3 times before adding anything to this
29 * file.
30 */
31 #ifndef INCLUDED_ircd_defs_h
32 #define INCLUDED_ircd_defs_h
33 #include "stdinc.h"
34
35 /* Right out of the RFC */
36 #define IRCD_BUFSIZE 512 /* WARNING: *DONT* CHANGE THIS!!!! */
37 #define HOSTLEN 63 /* Length of hostname. Updated to comply
38 with RFC 1123 */
39 /*
40 * NICKLEN: do not change this; if you want to change the maximum
41 * allowed nickname length, you can do this in the ircd.conf
42 */
43 #define NICKLEN 30
44 #define USERLEN 10
45 #define ACCOUNTLEN NICKLEN
46 #define PORTNAMELEN 6 /* ":31337" */
47
48 #define HOSTIPLEN 45 /* sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255") */
49 #define PASSWDLEN 128
50 #define IDLEN 12 /* this is the maximum length, not the actual
51 generated length; DO NOT CHANGE! */
52 #define REALLEN 50
53 #define CHANNELLEN 50
54 #define TOPICLEN 300
55 #define KILLLEN 240
56 #define REASONLEN 240
57 #define KICKLEN 180
58 #define AWAYLEN 180
59 #define KEYLEN 23
60
61 #define USERHOST_REPLYLEN (NICKLEN+USERLEN+HOSTLEN+3) /* +3 for !, @, \0 */
62 #define MAX_DATE_STRING 32 /* maximum string length for a date string */
63 #define IRCD_MAXNS 3 /* Maximum number of nameservers in
64 /etc/resolv.conf we care about */
65
66 #define LOWEST_SAFE_FD 4 /* skip stdin, stdout, stderr, and profiler */
67
68 /* This is to get around the fact that some implementations have ss_len and
69 * others do not
70 */
71 struct irc_ssaddr
72 {
73 struct sockaddr_storage ss;
74 unsigned char ss_len;
75 in_port_t ss_port;
76 };
77 #endif /* INCLUDED_ircd_defs_h */

Properties

Name Value
svn:eol-style native
svn:keywords Id Revision