| 1 |
|
/* |
| 2 |
< |
* ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd). |
| 3 |
< |
* defaults.h: The ircd defaults header for values and paths. |
| 2 |
> |
* ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd) |
| 3 |
|
* |
| 4 |
< |
* Copyright (C) 2002 by the past and present ircd coders, and others. |
| 4 |
> |
* Copyright (c) 1997-2018 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 |
| 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 |
| 18 |
> |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 |
| 19 |
|
* USA |
| 20 |
< |
* |
| 21 |
< |
* $Id$ |
| 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 |
| 30 |
|
/* Here are some default paths. Most except DPATH are |
| 31 |
|
* configurable at runtime. */ |
| 32 |
|
|
| 33 |
< |
/* |
| 33 |
> |
/* |
| 34 |
|
* Directory paths and filenames for UNIX systems. |
| 35 |
< |
* IRCD_PREFIX is set using ./configure --prefix, see INSTALL. |
| 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 |
< |
* IRCD_PREFIX = prefix for all directories |
| 42 |
> |
* PREFIX = prefix for all directories |
| 43 |
|
* DPATH = root directory of installation |
| 44 |
|
* BINPATH = directory for binary files |
| 43 |
– |
* MSGPATH = directory for language files |
| 45 |
|
* ETCPATH = directory for configuration files |
| 46 |
|
* LOGPATH = directory for logfiles |
| 47 |
|
* MODPATH = directory for modules |
| 49 |
|
*/ |
| 50 |
|
|
| 51 |
|
/* dirs */ |
| 52 |
< |
#define DPATH IRCD_PREFIX |
| 53 |
< |
#define BINPATH IRCD_PREFIX "/bin/" |
| 54 |
< |
#define MSGPATH IRCD_PREFIX "/messages/" |
| 55 |
< |
#define ETCPATH IRCD_PREFIX "/etc" |
| 56 |
< |
#define LOGPATH IRCD_PREFIX "/logs" |
| 57 |
< |
#define MODPATH IRCD_PREFIX "/modules/" |
| 58 |
< |
#define AUTOMODPATH IRCD_PREFIX "/modules/autoload/" |
| 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 SLPATH BINPATH "/servlink" /* servlink executable */ |
| 65 |
< |
#define CPATH ETCPATH "/ircd.conf" /* ircd.conf file */ |
| 66 |
< |
#define KPATH ETCPATH "/kline.conf" /* kline file */ |
| 67 |
< |
#define CRESVPATH ETCPATH "/cresv.conf" /* channel resvs file */ |
| 68 |
< |
#define NRESVPATH ETCPATH "/nresv.conf" /* nick resvs file */ |
| 69 |
< |
#define DLPATH ETCPATH "/dline.conf" /* dline file */ |
| 70 |
< |
#define GPATH ETCPATH "/gline.conf" /* gline conffile */ |
| 71 |
< |
#define XPATH ETCPATH "/xline.conf" /* xline file */ |
| 69 |
< |
#define RXPATH ETCPATH "/rxline.conf" |
| 70 |
< |
#define RKPATH ETCPATH "/rkline.conf" |
| 71 |
< |
#define MPATH ETCPATH "/ircd.motd" /* MOTD file */ |
| 72 |
< |
#define LPATH LOGPATH "/ircd.log" /* ircd logfile */ |
| 73 |
< |
#define PPATH ETCPATH "/ircd.pid" /* pid file */ |
| 74 |
< |
#define OPATH ETCPATH "/opers.motd" /* oper MOTD file */ |
| 75 |
< |
#define LIPATH ETCPATH "/links.txt" /* cached links file */ |
| 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 |
< |
/* this file is included to supply default |
| 74 |
< |
* values for things which are now configurable at runtime. |
| 73 |
> |
/* |
| 74 |
> |
* This file is included to supply default values for things which |
| 75 |
> |
* are now configurable at runtime. |
| 76 |
|
*/ |
| 77 |
|
|
| 81 |
– |
#define HANGONRETRYDELAY 60 /* Recommended value: 30-60 seconds */ |
| 78 |
|
#define HYBRID_SOMAXCONN 25 |
| 79 |
< |
#define MAX_TDKLINE_TIME (24*60*10) |
| 84 |
< |
#define HANGONGOODLINK 3600 /* Recommended value: 30-60 minutes */ |
| 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 |
| 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 |
< |
#define TS_MAX_DELTA_MIN 10 /* min value for ts_max_delta */ |
| 103 |
< |
#define TS_MAX_DELTA_DEFAULT 600 /* default for ts_max_delta */ |
| 104 |
< |
#define TS_WARN_DELTA_MIN 10 /* min value for ts_warn_delta */ |
| 105 |
< |
#define TS_WARN_DELTA_DEFAULT 30 /* default for ts_warn_delta */ |
| 106 |
< |
|
| 107 |
< |
/* ServerInfo default values */ |
| 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 |
|
|
| 114 |
– |
#define CLIENT_FLOOD_DEFAULT 2560 /* default for client_flood */ |
| 115 |
– |
#define CLIENT_FLOOD_MAX 8000 |
| 116 |
– |
#define CLIENT_FLOOD_MIN 512 |
| 117 |
– |
|
| 107 |
|
#define LINKS_DELAY_DEFAULT 300 |
| 108 |
|
|
| 109 |
|
#define MAX_TARGETS_DEFAULT 4 /* default for max_targets */ |
| 110 |
|
|
| 122 |
– |
#define INIT_LOG_LEVEL L_NOTICE /* default for log_level */ |
| 123 |
– |
|
| 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 |
| 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 |
| 134 |
– |
|
| 121 |
|
#endif /* INCLUDED_defaults_h */ |