ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/include/defaults.h
Revision: 6955
Committed: Thu Dec 17 10:53:54 2015 UTC (8 years, 4 months ago) by michael
Content type: text/x-chdr
File size: 4441 byte(s)
Log Message:
- Allow general::ts_warn_delta, and general::ts_max_delta to become 0

File Contents

# User Rev Content
1 adx 30 /*
2 michael 2865 * ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd)
3 adx 30 *
4 michael 5346 * Copyright (c) 1997-2015 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 defaults.h
23     * \brief The ircd defaults header for values and paths.
24     * \version $Id$
25     */
26    
27 adx 30 #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 michael 2865 /*
34 adx 30 * Directory paths and filenames for UNIX systems.
35 stu 908 * PREFIX is set using ./configure --prefix, see INSTALL.
36 adx 30 * 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 stu 908 * PREFIX = prefix for all directories
43 adx 30 * 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 michael 2865 #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 michael 6472 #define LIBPATH LOCALSTATEDIR "/lib"
59 michael 2865 #define LOGPATH LOCALSTATEDIR "/log"
60     #define RUNPATH LOCALSTATEDIR "/run"
61 adx 30
62     /* files */
63 michael 3048 #define SPATH BINPATH "/ircd" /* ircd executable */
64 michael 2865 #define CPATH ETCPATH "/ircd.conf" /* ircd.conf file */
65 michael 6472 #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 michael 2865 #define MPATH ETCPATH "/ircd.motd" /* MOTD file */
70     #define LPATH LOGPATH "/ircd.log" /* ircd logfile */
71     #define PPATH RUNPATH "/ircd.pid" /* pid file */
72 adx 30
73 michael 1391 /*
74     * This file is included to supply default values for things which
75     * are now configurable at runtime.
76 adx 30 */
77    
78     #define HYBRID_SOMAXCONN 25
79 michael 2865 #define MAX_TDKLINE_TIME (24*60*360)
80 adx 30
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 michael 1516 #define DEFAULT_RECVQ 2560 /* default max RecvQ */
94 adx 30 #define PORTNUM 6667 /* default outgoing portnum */
95     #define DEFAULT_PINGFREQUENCY 120 /* Default ping frequency */
96     #define DEFAULT_CONNECTFREQUENCY 600 /* Default connect frequency */
97 michael 1516 #define CLIENT_FLOOD_MAX 8000
98     #define CLIENT_FLOOD_MIN 512
99 adx 30
100 michael 4341 /* ConfigServerInfo default values */
101 adx 30 #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 michael 2865 #define OPER_SPAM_COUNTDOWN 5
117 adx 30 #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 */

Properties

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