1 |
/* |
2 |
* ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd) |
3 |
* |
4 |
* Copyright (c) 1997-2016 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 defaults.h |
23 |
* \brief The ircd defaults header for values and paths. |
24 |
* \version $Id$ |
25 |
*/ |
26 |
|
27 |
#ifndef INCLUDED_defaults_h |
28 |
#define INCLUDED_defaults_h |
29 |
|
30 |
/* Here are some default paths. Most except DPATH are |
31 |
* configurable at runtime. */ |
32 |
|
33 |
/* |
34 |
* Directory paths and filenames for UNIX systems. |
35 |
* PREFIX is set using ./configure --prefix, see INSTALL. |
36 |
* The other defaults should be fine. |
37 |
* |
38 |
* NOTE: CHANGING THESE WILL NOT ALTER THE DIRECTORY THAT FILES WILL |
39 |
* BE INSTALLED TO. IF YOU CHANGE THESE, DO NOT USE MAKE INSTALL, |
40 |
* BUT COPY THE FILES MANUALLY TO WHERE YOU WANT THEM. |
41 |
* |
42 |
* PREFIX = prefix for all directories |
43 |
* DPATH = root directory of installation |
44 |
* BINPATH = directory for binary files |
45 |
* ETCPATH = directory for configuration files |
46 |
* LOGPATH = directory for logfiles |
47 |
* MODPATH = directory for modules |
48 |
* AUTOMODPATH = directory for autoloaded modules |
49 |
*/ |
50 |
|
51 |
/* dirs */ |
52 |
#define DPATH PREFIX |
53 |
#define BINPATH PREFIX "/bin/" |
54 |
#define MODPATH LIBDIR "/" PACKAGE "/modules/" |
55 |
#define HPATH DATADIR "/" PACKAGE "/help" |
56 |
#define AUTOMODPATH MODPATH "/autoload/" |
57 |
#define ETCPATH SYSCONFDIR |
58 |
#define LIBPATH LOCALSTATEDIR "/lib" |
59 |
#define LOGPATH LOCALSTATEDIR "/log" |
60 |
#define RUNPATH LOCALSTATEDIR "/run" |
61 |
|
62 |
/* files */ |
63 |
#define SPATH BINPATH "/ircd" /* ircd executable */ |
64 |
#define CPATH ETCPATH "/ircd.conf" /* ircd.conf file */ |
65 |
#define KPATH LIBPATH "/kline.db" /* kline file */ |
66 |
#define RESVPATH LIBPATH "/resv.db" /* resv file */ |
67 |
#define DLPATH LIBPATH "/dline.db" /* dline file */ |
68 |
#define XPATH LIBPATH "/xline.db" /* xline file */ |
69 |
#define MPATH ETCPATH "/ircd.motd" /* MOTD file */ |
70 |
#define LPATH LOGPATH "/ircd.log" /* ircd logfile */ |
71 |
#define PPATH RUNPATH "/ircd.pid" /* pid file */ |
72 |
|
73 |
/* |
74 |
* This file is included to supply default values for things which |
75 |
* are now configurable at runtime. |
76 |
*/ |
77 |
|
78 |
#define HYBRID_SOMAXCONN 25 |
79 |
#define MAX_TDKLINE_TIME (24*60*360) |
80 |
|
81 |
/* tests show that about 7 fds are not registered by fdlist.c, these |
82 |
* include std* descriptors + some others (by OpenSSL etc.). Note this is |
83 |
* intentionally too high, we don't want to eat fds up to the last one */ |
84 |
#define LEAKED_FDS 10 |
85 |
/* how many (privileged) clients can exceed max_clients */ |
86 |
#define MAX_BUFFER 60 |
87 |
|
88 |
#define MAXCLIENTS_MAX (hard_fdlimit - LEAKED_FDS - MAX_BUFFER) |
89 |
#define MAXCLIENTS_MIN 32 |
90 |
|
91 |
/* class {} default values */ |
92 |
#define DEFAULT_SENDQ 9000000 /* default max SendQ */ |
93 |
#define DEFAULT_RECVQ 2560 /* default max RecvQ */ |
94 |
#define PORTNUM 6667 /* default outgoing portnum */ |
95 |
#define DEFAULT_PINGFREQUENCY 120 /* Default ping frequency */ |
96 |
#define DEFAULT_CONNECTFREQUENCY 600 /* Default connect frequency */ |
97 |
#define CLIENT_FLOOD_MAX 8000 |
98 |
#define CLIENT_FLOOD_MIN 512 |
99 |
|
100 |
/* ConfigServerInfo default values */ |
101 |
#define NETWORK_NAME_DEFAULT "EFnet" /* default for network_name */ |
102 |
#define NETWORK_DESC_DEFAULT "Eris Free Network" /* default for network_desc */ |
103 |
|
104 |
/* General defaults */ |
105 |
#define MAXIMUM_LINKS_DEFAULT 0 /* default for maximum_links */ |
106 |
|
107 |
#define LINKS_DELAY_DEFAULT 300 |
108 |
|
109 |
#define MAX_TARGETS_DEFAULT 4 /* default for max_targets */ |
110 |
|
111 |
#define CONNECTTIMEOUT 30 /* Recommended value: 30 */ |
112 |
#define IDENT_TIMEOUT 10 |
113 |
|
114 |
#define MIN_JOIN_LEAVE_TIME 60 |
115 |
#define MAX_JOIN_LEAVE_COUNT 25 |
116 |
#define OPER_SPAM_COUNTDOWN 5 |
117 |
#define JOIN_LEAVE_COUNT_EXPIRE_TIME 120 |
118 |
|
119 |
#define MIN_SPAM_NUM 5 |
120 |
#define MIN_SPAM_TIME 60 |
121 |
#endif /* INCLUDED_defaults_h */ |