ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/releases/8.2.0beta4/include/defaults.h
Revision: 4183
Committed: Sun Jul 6 14:05:25 2014 UTC (11 years, 1 month ago) by michael
Content type: text/x-chdr
File size: 4945 byte(s)
Log Message:
RELEASE TAG 8.2.0beta4

File Contents

# Content
1 /*
2 * ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd)
3 *
4 * Copyright (c) 1997-2014 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307
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 LOGPATH LOCALSTATEDIR "/log"
59 #define RUNPATH LOCALSTATEDIR "/run"
60
61 /* files */
62 #define SPATH BINPATH "/ircd" /* ircd executable */
63 #define CPATH ETCPATH "/ircd.conf" /* ircd.conf file */
64 #define KPATH ETCPATH "/kline.db" /* kline file */
65 #define RESVPATH ETCPATH "/resv.db" /* resv file */
66 #define DLPATH ETCPATH "/dline.db" /* dline file */
67 #define XPATH ETCPATH "/xline.db" /* xline file */
68 #define GPATH ETCPATH "/gline.db" /* gline 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 #define LIPATH ETCPATH "/links.txt" /* cached links file */
73
74 /*
75 * This file is included to supply default values for things which
76 * are now configurable at runtime.
77 */
78
79 #define HYBRID_SOMAXCONN 25
80 #define MAX_TDKLINE_TIME (24*60*360)
81
82 /* tests show that about 7 fds are not registered by fdlist.c, these
83 * include std* descriptors + some others (by OpenSSL etc.). Note this is
84 * intentionally too high, we don't want to eat fds up to the last one */
85 #define LEAKED_FDS 10
86 /* how many (privileged) clients can exceed max_clients */
87 #define MAX_BUFFER 60
88
89 #define MAXCLIENTS_MAX (hard_fdlimit - LEAKED_FDS - MAX_BUFFER)
90 #define MAXCLIENTS_MIN 32
91
92 /* class {} default values */
93 #define DEFAULT_SENDQ 9000000 /* default max SendQ */
94 #define DEFAULT_RECVQ 2560 /* default max RecvQ */
95 #define PORTNUM 6667 /* default outgoing portnum */
96 #define DEFAULT_PINGFREQUENCY 120 /* Default ping frequency */
97 #define DEFAULT_CONNECTFREQUENCY 600 /* Default connect frequency */
98 #define CLIENT_FLOOD_MAX 8000
99 #define CLIENT_FLOOD_MIN 512
100
101 #define WATCHSIZE_MIN 1
102 #define WATCHSIZE_DEFAULT 32
103 #define TS_MAX_DELTA_MIN 10 /* min value for ts_max_delta */
104 #define TS_MAX_DELTA_DEFAULT 600 /* default for ts_max_delta */
105 #define TS_WARN_DELTA_MIN 10 /* min value for ts_warn_delta */
106 #define TS_WARN_DELTA_DEFAULT 30 /* default for ts_warn_delta */
107
108 /* ServerInfo default values */
109 #define NETWORK_NAME_DEFAULT "EFnet" /* default for network_name */
110 #define NETWORK_DESC_DEFAULT "Eris Free Network" /* default for network_desc */
111 #define SERVICE_NAME_DEFAULT "service.someserver"
112
113 #define GLINE_REQUEST_EXPIRE_DEFAULT 600
114
115 /* General defaults */
116 #define MAXIMUM_LINKS_DEFAULT 0 /* default for maximum_links */
117
118 #define LINKS_DELAY_DEFAULT 300
119
120 #define MAX_TARGETS_DEFAULT 4 /* default for max_targets */
121
122 #define CONNECTTIMEOUT 30 /* Recommended value: 30 */
123 #define IDENT_TIMEOUT 10
124
125 #define MIN_JOIN_LEAVE_TIME 60
126 #define MAX_JOIN_LEAVE_COUNT 25
127 #define OPER_SPAM_COUNTDOWN 5
128 #define JOIN_LEAVE_COUNT_EXPIRE_TIME 120
129
130 #define MIN_SPAM_NUM 5
131 #define MIN_SPAM_TIME 60
132 #endif /* INCLUDED_defaults_h */

Properties

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