32 |
|
#include "config.h" |
33 |
|
|
34 |
|
|
35 |
< |
struct |
35 |
> |
struct SetOptions |
36 |
|
{ |
37 |
|
unsigned int maxclients; |
38 |
|
unsigned int autoconn; /* autoconn enabled for all servers? */ |
42 |
|
unsigned int ident_timeout; /* timeout for identd lookups */ |
43 |
|
int spam_num; |
44 |
|
unsigned int spam_time; |
45 |
< |
} GlobalSetOptions; |
45 |
> |
}; |
46 |
|
|
47 |
|
/* |
48 |
|
* statistics structures |
70 |
|
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 |
< |
} ServerStats; |
73 |
> |
}; |
74 |
|
|
75 |
< |
struct |
75 |
> |
struct Counter |
76 |
|
{ |
77 |
|
uint64_t totalrestartcount; /* Total client count ever */ |
78 |
|
unsigned int myserver; /* my servers */ |
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 |
< |
} Count; |
87 |
> |
}; |
88 |
|
|
89 |
< |
struct |
89 |
> |
struct ServerState_t |
90 |
|
{ |
91 |
|
unsigned int foreground; |
92 |
< |
} server_state; |
92 |
> |
};; |
93 |
|
|
94 |
|
|
95 |
|
#ifdef HAVE_LIBGEOIP |
103 |
|
extern const char *pidFileName; |
104 |
|
extern unsigned int dorehash; |
105 |
|
extern unsigned int doremotd; |
106 |
+ |
extern struct Counter Count; |
107 |
+ |
extern struct ServerStatistics ServerStats; |
108 |
+ |
extern struct SetOptions GlobalSetOptions; /* defined in ircd.c */ |
109 |
+ |
extern struct ServerState_t server_state; |
110 |
|
extern struct event event_write_links_file; |
111 |
|
extern struct timeval SystemTime; |
112 |
|
#define CurrentTime SystemTime.tv_sec |