1 |
|
/* |
2 |
< |
* ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd). |
3 |
< |
* ircd_defs.h: A header for ircd global definitions. |
2 |
> |
* ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd) |
3 |
|
* |
4 |
< |
* Copyright (C) 2002 by the past and present ircd coders, and others. |
4 |
> |
* Copyright (c) 1997-2017 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 |
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
18 |
> |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 |
19 |
|
* USA |
21 |
– |
* |
22 |
– |
* $Id$ |
20 |
|
*/ |
21 |
|
|
22 |
< |
/* |
23 |
< |
* NOTE: NICKLEN and TOPICLEN do not live here anymore. Set it with configure |
24 |
< |
* Otherwise there are no user servicable part here. |
28 |
< |
* |
22 |
> |
/*! \file ircd_defs.h |
23 |
> |
* \brief A header for ircd global definitions. |
24 |
> |
* \version $Id$ |
25 |
|
*/ |
26 |
< |
/* ircd_defs.h - Global size definitions for record entries used |
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 |
< |
#define USERLEN 10 |
39 |
> |
/* |
40 |
> |
* NICKLEN: maximum size of a nick name that your server will be able to handle |
41 |
> |
* when receiving nicks from remote servers. Do not change this; if you want to |
42 |
> |
* change the maximum allowed nickname length, you can do this in the ircd.conf |
43 |
> |
*/ |
44 |
> |
#define NICKLEN 30 |
45 |
> |
#define USERLEN 10 |
46 |
> |
#define ACCOUNTLEN NICKLEN |
47 |
|
#define PORTNAMELEN 6 /* ":31337" */ |
48 |
|
|
49 |
|
#define HOSTIPLEN 45 /* sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255") */ |
50 |
< |
#define PASSWDLEN 20 |
50 |
> |
#define PASSWDLEN 128 |
51 |
|
#define IDLEN 12 /* this is the maximum length, not the actual |
52 |
|
generated length; DO NOT CHANGE! */ |
53 |
|
#define REALLEN 50 |
54 |
< |
#define KILLLEN 90 |
55 |
< |
#define LOCAL_CHANNELLEN 50 |
56 |
< |
#define CHANNELLEN 200 |
57 |
< |
#define REASONLEN 120 |
58 |
< |
#define KICKLEN 160 |
59 |
< |
#define AWAYLEN 160 |
54 |
> |
#define CHANNELLEN 50 |
55 |
> |
|
56 |
> |
/* |
57 |
> |
* TOPICLEN: maximum size of a topic that your server will be able to handle |
58 |
> |
* when receiving topics from remote servers. Do not change this; if you want to |
59 |
> |
* change the maximum allowed topic length, you can do this in the ircd.conf |
60 |
> |
*/ |
61 |
> |
#define TOPICLEN 300 |
62 |
> |
#define REASONLEN 260 |
63 |
> |
#define KICKLEN 180 |
64 |
> |
#define AWAYLEN 180 |
65 |
|
#define KEYLEN 23 |
66 |
|
|
57 |
– |
#define USERHOST_REPLYLEN (NICKLEN+HOSTLEN+USERLEN+5) |
67 |
|
#define MAX_DATE_STRING 32 /* maximum string length for a date string */ |
68 |
< |
#define IRCD_MAXNS 3 /* Maximum number of nameservers in |
60 |
< |
/etc/resolv.conf we care about */ |
61 |
< |
|
62 |
< |
#define LOWEST_SAFE_FD 4 /* skip stdin, stdout, stderr, and profiler */ |
68 |
> |
#define LOWEST_SAFE_FD 3 /* skip stdin, stdout, and stderr */ |
69 |
|
|
70 |
|
/* This is to get around the fact that some implementations have ss_len and |
71 |
|
* others do not |