]> jfr.im git - irc/rqf/shadowircd.git/blob - include/defaults.h
[svn] - the new plan:
[irc/rqf/shadowircd.git] / include / defaults.h
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
23 *
24 * $Id: defaults.h 6 2005-09-10 01:02:21Z nenolod $
25 */
26
27 #ifndef INCLUDED_defaults_h
28 #define INCLUDED_defaults_h
29
30 /* this file is included (only) at the end of config.h, to supply default
31 * values for things which are now configurable at runtime.
32 */
33
34 /*
35 * First, set other fd limits based on values from user
36 */
37 #ifndef HARD_FDLIMIT_
38 error HARD_FDLIMIT_ undefined
39 #endif
40 #define HARD_FDLIMIT (HARD_FDLIMIT_ - 10)
41 #define MAXCONNECTIONS HARD_FDLIMIT
42 #define MASTER_MAX (HARD_FDLIMIT - MAX_BUFFER)
43 /* class {} default values */
44 #define DEFAULT_SENDQ 20000000 /* default max SendQ */
45 #define PORTNUM 6667 /* default outgoing portnum */
46 #define DEFAULT_PINGFREQUENCY 120 /* Default ping frequency */
47 #define DEFAULT_CONNECTFREQUENCY 600 /* Default connect frequency */
48 #define TS_MAX_DELTA_MIN 10 /* min value for ts_max_delta */
49 #define TS_MAX_DELTA_DEFAULT 600 /* default for ts_max_delta */
50 #define TS_WARN_DELTA_MIN 10 /* min value for ts_warn_delta */
51 #define TS_WARN_DELTA_DEFAULT 30 /* default for ts_warn_delta */
52 /* ServerInfo default values */
53 #define NETWORK_NAME_DEFAULT "EFnet" /* default for network_name */
54 #define NETWORK_DESC_DEFAULT "Eris Free Network" /* default for network_desc */
55 /* General defaults */
56 #define CLIENT_FLOOD_DEFAULT 20 /* default for client_flood */
57 #define CLIENT_FLOOD_MAX 2000
58 #define CLIENT_FLOOD_MIN 10
59 #define LINKS_DELAY_DEFAULT 300
60 #define MAX_TARGETS_DEFAULT 4 /* default for max_targets */
61 #define IDENT_TIMEOUT 10
62 #define MIN_JOIN_LEAVE_TIME 60
63 #define MAX_JOIN_LEAVE_COUNT 25
64 #define OPER_SPAM_COUNTDOWN 5
65 #define JOIN_LEAVE_COUNT_EXPIRE_TIME 120
66 #define MIN_SPAM_NUM 5
67 #define MIN_SPAM_TIME 60
68 #define CONFIG_RATBOX_LEVEL_1
69 #endif /* INCLUDED_defaults_h */