]> jfr.im git - solanum.git/blame - include/defaults.h
ircd: modules: use LT_MODULE_EXT more consistently
[solanum.git] / include / defaults.h
CommitLineData
212380e3
AC
1/*
2 * ircd-ratbox: A slightly useful ircd.
3 * defaults.h: The ircd defaults header.
4 *
5 * Copyright (C) 1990 Jarkko Oikarinen and University of Oulu, Co Center
6 * Copyright (C) 1996-2002 Hybrid Development Team
7 * Copyright (C) 2002-2004 ircd-ratbox development team
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
22 * USA
212380e3
AC
23 */
24
25#ifndef INCLUDED_defaults_h
26#define INCLUDED_defaults_h
27
9b8e9eb3
EM
28/* /!\ DANGER WILL ROBINSON! DANGER! /!\
29 *
30 * Do not mess with these values unless you know what you are doing!
212380e3
AC
31 */
32
9b8e9eb3
EM
33#include "setup.h"
34
212380e3
AC
35/*
36 * First, set other fd limits based on values from user
37 */
101db4c4
VY
38
39
40#define MAXCONNECTIONS 65535 /* default max connections if getrlimit doesn't work */
212380e3
AC
41/* class {} default values */
42#define DEFAULT_SENDQ 20000000 /* default max SendQ */
43#define PORTNUM 6667 /* default outgoing portnum */
44#define DEFAULT_PINGFREQUENCY 120 /* Default ping frequency */
45#define DEFAULT_CONNECTFREQUENCY 600 /* Default connect frequency */
46#define TS_MAX_DELTA_MIN 10 /* min value for ts_max_delta */
47#define TS_MAX_DELTA_DEFAULT 600 /* default for ts_max_delta */
48#define TS_WARN_DELTA_MIN 10 /* min value for ts_warn_delta */
49#define TS_WARN_DELTA_DEFAULT 30 /* default for ts_warn_delta */
50/* ServerInfo default values */
51#define NETWORK_NAME_DEFAULT "EFnet" /* default for network_name */
212380e3
AC
52/* General defaults */
53#define CLIENT_FLOOD_DEFAULT 20 /* default for client_flood */
54#define CLIENT_FLOOD_MAX 2000
55#define CLIENT_FLOOD_MIN 10
56#define LINKS_DELAY_DEFAULT 300
57#define MAX_TARGETS_DEFAULT 4 /* default for max_targets */
7f3382fe 58#define IDENT_TIMEOUT_DEFAULT 5
212380e3
AC
59#define MIN_JOIN_LEAVE_TIME 60
60#define MAX_JOIN_LEAVE_COUNT 25
61#define OPER_SPAM_COUNTDOWN 5
62#define JOIN_LEAVE_COUNT_EXPIRE_TIME 120
63#define MIN_SPAM_NUM 5
64#define MIN_SPAM_TIME 60
9b8e9eb3
EM
65
66/*
67 * Directory paths and filenames for UNIX systems.
68 * IRCD_PREFIX is set using ./configure --prefix, see INSTALL.
69 *
70 * IRCD_PREFIX = prefix for all directories,
71 * DPATH = root directory of installation,
72 * BINPATH = directory for binary files,
73 * ETCPATH = directory for configuration files,
74 * LOGPATH = directory for logfiles,
75 * MODPATH = directory for modules,
76 * AUTOMODPATH = directory for autoloaded modules
77 */
78
79#define DPATH IRCD_PREFIX
80#define BINPATH IRCD_PREFIX "/bin/"
81#define MODPATH MODULE_DIR
82#define AUTOMODPATH MODULE_DIR "/autoload/"
83#define ETCPATH ETC_DIR
84#define LOGPATH LOG_DIR
85#define UHPATH HELP_DIR "/users"
86#define HPATH HELP_DIR "/opers"
87#define SPATH BINPATH "/" PROGRAM_PREFIX "charybdis" /* ircd executable */
88#define CPATH ETCPATH "/ircd.conf" /* ircd.conf file */
89#define MPATH ETCPATH "/ircd.motd" /* MOTD file */
90#define LPATH LOGPATH "/ircd.log" /* ircd logfile */
91#define PPATH PKGRUNDIR "/ircd.pid" /* pid file */
92#define OPATH ETCPATH "/opers.motd" /* oper MOTD file */
93#define DBPATH PKGLOCALSTATEDIR "/ban.db" /* bandb file */
94
95/* HANGONGOODLINK and HANGONRETRYDELAY
96 * Often net breaks for a short time and it's useful to try to
97 * establishing the same connection again faster than CONNECTFREQUENCY
98 * would allow. But, to keep trying on bad connection, we require
99 * that connection has been open for certain minimum time
100 * (HANGONGOODLINK) and we give the net few seconds to steady
101 * (HANGONRETRYDELAY). This latter has to be long enough that the
102 * other end of the connection has time to notice it broke too.
103 */
104#define HANGONRETRYDELAY 60 /* Recommended value: 30-60 seconds */
105#define HANGONGOODLINK 3600 /* Recommended value: 30-60 minutes */
106
107/* KILLCHASETIMELIMIT -
108 * Max time from the nickname change that still causes KILL
109 * automatically to switch for the current nick of that user. (seconds)
110 */
111#define KILLCHASETIMELIMIT 90 /* Recommended value: 90 */
112
113/* MAX_BUFFER
114 * The amount of fds to reserve for clients exempt from limits
115 * and dns lookups.
116 */
117#define MAX_BUFFER 60
118
119/* CHARYBDIS_SOMAXCONN
120 * Use SOMAXCONN if OS has it, otherwise use this value for the
121 * listen(); backlog. 5 for AIX/SUNOS, 25 for other OSs.
122 */
123#define CHARYBDIS_SOMAXCONN 25
124
212380e3 125#endif /* INCLUDED_defaults_h */