/[svn]/ircd-hybrid/branches/8.1.x/include/defaults.h
ViewVC logotype

Contents of /ircd-hybrid/branches/8.1.x/include/defaults.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2162 - (show annotations)
Sun Jun 2 18:41:10 2013 UTC (7 years, 1 month ago) by michael
File MIME type: text/x-csrc
File size: 5185 byte(s)
- include/defaults.h: remove unused INIT_LOG_LEVEL define

1 /*
2 * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
3 * defaults.h: The ircd defaults header for values and paths.
4 *
5 * Copyright (C) 2002 by the past and present ircd coders, and others.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20 * USA
21 *
22 * $Id$
23 */
24
25 #ifndef INCLUDED_defaults_h
26 #define INCLUDED_defaults_h
27
28 /* Here are some default paths. Most except DPATH are
29 * configurable at runtime. */
30
31 /*
32 * Directory paths and filenames for UNIX systems.
33 * PREFIX is set using ./configure --prefix, see INSTALL.
34 * The other defaults should be fine.
35 *
36 * NOTE: CHANGING THESE WILL NOT ALTER THE DIRECTORY THAT FILES WILL
37 * BE INSTALLED TO. IF YOU CHANGE THESE, DO NOT USE MAKE INSTALL,
38 * BUT COPY THE FILES MANUALLY TO WHERE YOU WANT THEM.
39 *
40 * PREFIX = prefix for all directories
41 * DPATH = root directory of installation
42 * BINPATH = directory for binary files
43 * MSGPATH = directory for language files
44 * ETCPATH = directory for configuration files
45 * LOGPATH = directory for logfiles
46 * MODPATH = directory for modules
47 * AUTOMODPATH = directory for autoloaded modules
48 */
49
50 /* dirs */
51 #define DPATH PREFIX
52 #define SBINPATH PREFIX "/sbin/"
53 #define BINPATH PREFIX "/bin/"
54 #define MSGPATH DATADIR "/" PACKAGE "/messages"
55 #define MODPATH LIBDIR "/" PACKAGE "/modules/"
56 #define HPATH DATADIR "/" PACKAGE "/help"
57 #define AUTOMODPATH MODPATH "/autoload/"
58 #define ETCPATH SYSCONFDIR
59 #define LOGPATH LOCALSTATEDIR "/log"
60 #define RUNPATH LOCALSTATEDIR "/run"
61
62 /* files */
63 #define SPATH SBINPATH "/ircd" /* ircd executable */
64 #define CPATH ETCPATH "/ircd.conf" /* ircd.conf file */
65 #define KPATH ETCPATH "/kline.db" /* kline file */
66 #define RESVPATH ETCPATH "/resv.db" /* resv file */
67 #define DLPATH ETCPATH "/dline.db" /* dline file */
68 #define XPATH ETCPATH "/xline.db" /* xline file */
69 #define GPATH ETCPATH "/gline.db" /* gline file */
70 #define MPATH ETCPATH "/ircd.motd" /* MOTD file */
71 #define LPATH LOGPATH "/ircd.log" /* ircd logfile */
72 #define PPATH RUNPATH "/ircd.pid" /* pid file */
73 #define LIPATH ETCPATH "/links.txt" /* cached links file */
74
75 /*
76 * This file is included to supply default values for things which
77 * are now configurable at runtime.
78 */
79
80 #define HYBRID_SOMAXCONN 25
81 #define MAX_TDKLINE_TIME (24*60*360)
82
83 /* tests show that about 7 fds are not registered by fdlist.c, these
84 * include std* descriptors + some others (by OpenSSL etc.). Note this is
85 * intentionally too high, we don't want to eat fds up to the last one */
86 #define LEAKED_FDS 10
87 /* how many (privileged) clients can exceed max_clients */
88 #define MAX_BUFFER 60
89
90 #define MAXCLIENTS_MAX (hard_fdlimit - LEAKED_FDS - MAX_BUFFER)
91 #define MAXCLIENTS_MIN 32
92
93 /* class {} default values */
94 #define DEFAULT_SENDQ 9000000 /* default max SendQ */
95 #define DEFAULT_RECVQ 2560 /* default max RecvQ */
96 #define PORTNUM 6667 /* default outgoing portnum */
97 #define DEFAULT_PINGFREQUENCY 120 /* Default ping frequency */
98 #define DEFAULT_CONNECTFREQUENCY 600 /* Default connect frequency */
99 #define CLIENT_FLOOD_MAX 8000
100 #define CLIENT_FLOOD_MIN 512
101
102 #define WATCHSIZE_MIN 1
103 #define WATCHSIZE_DEFAULT 32
104 #define TS_MAX_DELTA_MIN 10 /* min value for ts_max_delta */
105 #define TS_MAX_DELTA_DEFAULT 600 /* default for ts_max_delta */
106 #define TS_WARN_DELTA_MIN 10 /* min value for ts_warn_delta */
107 #define TS_WARN_DELTA_DEFAULT 30 /* default for ts_warn_delta */
108
109 /* ServerInfo default values */
110 #define NETWORK_NAME_DEFAULT "EFnet" /* default for network_name */
111 #define NETWORK_DESC_DEFAULT "Eris Free Network" /* default for network_desc */
112 #define SERVICE_NAME_DEFAULT "service.someserver"
113
114 #define GLINE_REQUEST_EXPIRE_DEFAULT 600
115
116 /* General defaults */
117 #define MAXIMUM_LINKS_DEFAULT 0 /* default for maximum_links */
118
119 #define LINKS_DELAY_DEFAULT 300
120
121 #define MAX_TARGETS_DEFAULT 4 /* default for max_targets */
122
123 #define CONNECTTIMEOUT 30 /* Recommended value: 30 */
124 #define IDENT_TIMEOUT 10
125
126 #define MIN_JOIN_LEAVE_TIME 60
127 #define MAX_JOIN_LEAVE_COUNT 25
128 #define OPER_SPAM_COUNTDOWN 5
129 #define JOIN_LEAVE_COUNT_EXPIRE_TIME 120
130
131 #define MIN_SPAM_NUM 5
132 #define MIN_SPAM_TIME 60
133
134 #endif /* INCLUDED_defaults_h */

Properties

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

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28