1 |
adx |
30 |
/* |
2 |
michael |
2865 |
* ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd) |
3 |
adx |
30 |
* |
4 |
michael |
10024 |
* Copyright (c) 1997-2022 ircd-hybrid development team |
5 |
adx |
30 |
* |
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 |
michael |
4564 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 |
19 |
adx |
30 |
* USA |
20 |
|
|
*/ |
21 |
|
|
|
22 |
michael |
2865 |
/*! \file ircd_defs.h |
23 |
|
|
* \brief A header for ircd global definitions. |
24 |
|
|
* \version $Id$ |
25 |
adx |
30 |
*/ |
26 |
michael |
2865 |
|
27 |
|
|
/* ircd_defs.h - Global size definitions for record entries used |
28 |
adx |
30 |
* 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 |
michael |
1123 |
#include "stdinc.h" |
34 |
michael |
2865 |
|
35 |
adx |
30 |
/* Right out of the RFC */ |
36 |
|
|
#define IRCD_BUFSIZE 512 /* WARNING: *DONT* CHANGE THIS!!!! */ |
37 |
michael |
913 |
#define HOSTLEN 63 /* Length of hostname. Updated to comply |
38 |
|
|
with RFC 1123 */ |
39 |
michael |
5571 |
/* |
40 |
michael |
7506 |
* 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 |
michael |
5571 |
*/ |
44 |
michael |
1751 |
#define NICKLEN 30 |
45 |
michael |
2949 |
#define USERLEN 10 |
46 |
michael |
5574 |
#define ACCOUNTLEN NICKLEN |
47 |
adx |
30 |
#define PORTNAMELEN 6 /* ":31337" */ |
48 |
|
|
|
49 |
michael |
1497 |
#define HOSTIPLEN 45 /* sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255") */ |
50 |
michael |
2366 |
#define PASSWDLEN 128 |
51 |
michael |
1497 |
#define IDLEN 12 /* this is the maximum length, not the actual |
52 |
|
|
generated length; DO NOT CHANGE! */ |
53 |
adx |
30 |
#define REALLEN 50 |
54 |
michael |
3422 |
#define CHANNELLEN 50 |
55 |
michael |
7508 |
|
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 |
michael |
1751 |
#define TOPICLEN 300 |
62 |
michael |
7514 |
#define REASONLEN 260 |
63 |
michael |
2350 |
#define KICKLEN 180 |
64 |
|
|
#define AWAYLEN 180 |
65 |
michael |
1365 |
#define KEYLEN 23 |
66 |
adx |
30 |
|
67 |
|
|
#define MAX_DATE_STRING 32 /* maximum string length for a date string */ |
68 |
michael |
7269 |
#define LOWEST_SAFE_FD 3 /* skip stdin, stdout, and stderr */ |
69 |
adx |
30 |
|
70 |
|
|
/* This is to get around the fact that some implementations have ss_len and |
71 |
|
|
* others do not |
72 |
|
|
*/ |
73 |
|
|
struct irc_ssaddr |
74 |
|
|
{ |
75 |
|
|
struct sockaddr_storage ss; |
76 |
|
|
unsigned char ss_len; |
77 |
|
|
}; |
78 |
|
|
#endif /* INCLUDED_ircd_defs_h */ |