ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/include/ircd.h
Revision: 5488
Committed: Sun Feb 8 14:50:36 2015 UTC (9 years, 2 months ago) by michael
Content type: text/x-chdr
File size: 3905 byte(s)
Log Message:
- Fixed bug where "/rehash" would always reset the "MAX", "JFLOODTIME", and "JFLOODCOUNT" values that
  have been changed from within IRC via the "/set" command
- Renamed the following ircd.conf configuration directives to be more descriptive:

  max_clients -> default_max_clients
  join_flood_count -> default_join_flood_count
  join_flood_time -> default_join_flood_time

- Updated related ircd.conf documentation accordingly

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 ircd.h
23     * \brief A header for the ircd startup routines.
24     * \version $Id$
25     */
26    
27    
28 adx 30 #ifndef INCLUDED_ircd_h
29     #define INCLUDED_ircd_h
30    
31     #include "ircd_defs.h"
32 michael 912 #include "config.h"
33 adx 30
34    
35 michael 4107 struct
36 adx 30 {
37 michael 5488 unsigned int maxclients;
38 michael 3903 unsigned int autoconn; /* autoconn enabled for all servers? */
39 michael 3922 int floodcount; /* Number of messages in 1 second */
40 michael 3903 unsigned int joinfloodtime;
41     unsigned int joinfloodcount;
42     unsigned int ident_timeout; /* timeout for identd lookups */
43 michael 3922 int spam_num;
44 michael 3903 unsigned int spam_time;
45 michael 4107 } GlobalSetOptions;
46 adx 30
47 michael 896 /*
48     * statistics structures
49     */
50 michael 1011 struct ServerStatistics
51     {
52 michael 1143 uint64_t is_cbs; /* bytes sent to clients */
53     uint64_t is_cbr; /* bytes received from clients */
54     uint64_t is_sbs; /* bytes sent to servers */
55     uint64_t is_sbr; /* bytes received from servers */
56 michael 1011
57 michael 1143 time_t is_cti; /* time spent connected by clients */
58     time_t is_sti; /* time spent connected by servers */
59 michael 948
60 michael 1143 unsigned int is_cl; /* number of client connections */
61     unsigned int is_sv; /* number of server connections */
62     unsigned int is_ni; /* connection but no idea who it was */
63     unsigned int is_ac; /* connections accepted */
64     unsigned int is_ref; /* accepts refused */
65 michael 896 unsigned int is_unco; /* unknown commands */
66     unsigned int is_wrdi; /* command going in wrong direction */
67     unsigned int is_unpf; /* unknown prefix */
68     unsigned int is_empt; /* empty message */
69 michael 1143 unsigned int is_num; /* numeric message */
70 michael 896 unsigned int is_kill; /* number of kills generated on collisions */
71     unsigned int is_asuc; /* successful auth requests */
72     unsigned int is_abad; /* bad auth requests */
73 michael 4608 } ServerStats;
74 michael 896
75 michael 4608 struct
76 adx 30 {
77 michael 948 uint64_t totalrestartcount; /* Total client count ever */
78 michael 1143 unsigned int myserver; /* my servers */
79     unsigned int oper; /* Opers */
80     unsigned int local; /* Local Clients */
81     unsigned int total; /* total clients */
82     unsigned int invisi; /* invisible clients */
83     unsigned int max_loc; /* MAX local clients */
84     unsigned int max_tot; /* MAX global clients */
85     unsigned int max_loc_con; /* MAX local connection count (clients + server) */
86     unsigned int max_loc_cli; /* XXX This is redundant - Max local client count */
87 michael 4107 } Count;
88 adx 30
89 michael 4107 struct
90 adx 30 {
91 michael 3903 unsigned int foreground;
92 michael 4107 } server_state;
93 adx 30
94    
95 michael 1858 #ifdef HAVE_LIBGEOIP
96     extern GeoIP *geoip_ctx;
97     #endif
98 adx 30 extern char **myargv;
99     extern const char *infotext[];
100     extern const char *serno;
101     extern const char *ircd_version;
102     extern const char *logFileName;
103     extern const char *pidFileName;
104 michael 5461 extern unsigned int dorehash;
105     extern unsigned int doremotd;
106 michael 4095 extern struct event event_write_links_file;
107 adx 30 extern struct timeval SystemTime;
108     #define CurrentTime SystemTime.tv_sec
109 michael 3906 extern int unsigned default_server_capabs;
110 michael 1013 extern unsigned int splitmode;
111     extern unsigned int splitchecking;
112     extern unsigned int split_users;
113 adx 30 extern unsigned int split_servers;
114    
115     extern void set_time(void);
116     #endif

Properties

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