ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/include/conf.h
Revision: 876
Committed: Wed Oct 24 21:51:21 2007 UTC (18 years, 9 months ago) by michael
Content type: text/x-chdr
Original Path: ircd-hybrid-7.2/include/s_conf.h
File size: 18995 byte(s)
Log Message:
Backported WATCH

File Contents

# User Rev Content
1 adx 30 /*
2     * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
3     * s_conf.h: A header for the configuration functions.
4     *
5     * Copyright (C) 2005 by the past and present ircd coders, and others.
6     *
7     * This program is free software; you can redistribute it and/or modify
8     * it under the terms of the GNU General Public License as published by
9     * the Free Software Foundation; either version 2 of the License, or
10     * (at your option) any later version.
11     *
12     * This program is distributed in the hope that it will be useful,
13     * but WITHOUT ANY WARRANTY; without even the implied warranty of
14     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15     * GNU General Public License for more details.
16     *
17     * You should have received a copy of the GNU General Public License
18     * along with this program; if not, write to the Free Software
19     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20     * USA
21     *
22 knight 31 * $Id$
23 adx 30 */
24    
25     #ifndef INCLUDED_s_conf_h
26     #define INCLUDED_s_conf_h
27     #include "setup.h"
28     #ifdef HAVE_LIBCRYPTO
29     #include <openssl/rsa.h>
30     #endif
31     #include "fileio.h" /* FBFILE */
32     #include "ircd_defs.h"
33     #include "motd.h" /* MessageFile */
34     #include "client.h"
35     #include "hook.h"
36     #include "pcre.h"
37    
38     struct Client;
39     struct DNSReply;
40     struct hostent;
41    
42     extern FBFILE *conf_fbfile_in;
43     extern struct Callback *client_check_cb;
44    
45 michael 56 typedef enum
46     {
47 adx 30 CONF_TYPE,
48     CLASS_TYPE,
49     OPER_TYPE,
50     CLIENT_TYPE,
51     SERVER_TYPE,
52     HUB_TYPE,
53     LEAF_TYPE,
54     KLINE_TYPE,
55     DLINE_TYPE,
56     EXEMPTDLINE_TYPE,
57     CLUSTER_TYPE,
58     RKLINE_TYPE,
59     RXLINE_TYPE,
60     XLINE_TYPE,
61     ULINE_TYPE,
62     GLINE_TYPE,
63     CRESV_TYPE,
64     NRESV_TYPE,
65     GDENY_TYPE
66     } ConfType;
67    
68 michael 593 struct split_nuh_item
69     {
70     dlink_node node;
71    
72     char *nuhmask;
73     char *nickptr;
74     char *userptr;
75     char *hostptr;
76    
77     size_t nicksize;
78     size_t usersize;
79     size_t hostsize;
80     };
81    
82 adx 30 struct ConfItem
83     {
84     char *name; /* Primary key */
85     pcre *regexpname;
86     dlink_node node; /* link into known ConfItems of this type */
87     unsigned int flags;
88     ConfType type;
89     };
90    
91     /*
92     * MatchItem - used for XLINE and ULINE types
93     */
94     struct MatchItem
95     {
96     char *user; /* Used for ULINE only */
97     char *host; /* Used for ULINE only */
98     char *reason;
99     char *oper_reason;
100     int action; /* used for uline */
101     int count; /* How many times this matchitem has been matched */
102     int ref_count; /* How many times is this matchitem in use */
103     int illegal; /* Should it be deleted when possible? */
104     time_t hold; /* Hold action until this time (calendar time) */
105     };
106    
107     struct AccessItem
108     {
109     dlink_node node;
110     unsigned int status; /* If CONF_ILLEGAL, delete when no clients */
111     unsigned int flags;
112 michael 56 unsigned int modes;
113 adx 30 int clients; /* Number of *LOCAL* clients using this */
114     struct irc_ssaddr my_ipnum; /* ip to bind to for outgoing connect */
115     struct irc_ssaddr ipnum; /* ip to connect to */
116     char * host; /* host part of user@host */
117     char * passwd;
118     char * spasswd; /* Password to send. */
119     char * reason;
120     char * oper_reason;
121     char * user; /* user part of user@host */
122     int port;
123     char * fakename; /* Mask name */
124     time_t hold; /* Hold action until this time (calendar time) */
125     struct ConfItem *class_ptr; /* Class of connection */
126     struct DNSQuery* dns_query;
127     int aftype;
128     #ifdef HAVE_LIBCRYPTO
129     char * rsa_public_key_file;
130     RSA * rsa_public_key;
131     struct EncCapability *cipher_preference;
132     #endif
133     pcre *regexuser;
134     pcre *regexhost;
135     };
136    
137     struct ClassItem
138     {
139     long max_sendq;
140     int con_freq;
141     int ping_freq;
142     int ping_warning;
143     int max_total;
144     int max_local;
145     int max_global;
146     int max_ident;
147     int max_perip;
148     int curr_user_count;
149     int cidr_bitlen_ipv4;
150     int cidr_bitlen_ipv6;
151     int number_per_cidr;
152     dlink_list list_ipv4; /* base of per cidr ipv4 client link list */
153     dlink_list list_ipv6; /* base of per cidr ipv6 client link list */
154 michael 671 int active;
155 adx 30 };
156    
157     struct CidrItem
158     {
159     struct irc_ssaddr mask;
160     int number_on_this_cidr;
161     dlink_node node;
162     };
163    
164     #define ConFreq(x) ((x)->con_freq)
165     #define PingFreq(x) ((x)->ping_freq)
166     #define PingWarning(x) ((x)->ping_warning)
167     #define MaxTotal(x) ((x)->max_total)
168     #define MaxGlobal(x) ((x)->max_global)
169     #define MaxLocal(x) ((x)->max_local)
170     #define MaxIdent(x) ((x)->max_ident)
171     #define MaxPerIp(x) ((x)->max_perip)
172     #define MaxSendq(x) ((x)->max_sendq)
173     #define CurrUserCount(x) ((x)->curr_user_count)
174     #define CidrBitlenIPV4(x) ((x)->cidr_bitlen_ipv4)
175     #define CidrBitlenIPV6(x) ((x)->cidr_bitlen_ipv6)
176     #define NumberPerCidr(x) ((x)->number_per_cidr)
177    
178     #define ClassPtr(x) ((x)->class_ptr)
179    
180    
181     #define CONF_ILLEGAL 0x80000000
182     #define CONF_RESERVED 0x00000001
183     #define CONF_CLIENT 0x00000002
184     #define CONF_SERVER 0x00000004
185     #define CONF_OPERATOR 0x00000008
186     #define CONF_KILL 0x00000010
187     #define CONF_KLINE CONF_KILL
188     #define CONF_CLASS 0x00000020
189     #define CONF_LEAF 0x00000040
190     #define CONF_LISTEN_PORT 0x00000080
191     #define CONF_HUB 0x00000100
192     #define CONF_EXEMPTKLINE 0x00000200
193     #define CONF_NOLIMIT 0x00000400
194     #define CONF_DLINE 0x00000800
195     #define CONF_XLINE 0x00001000
196     #define CONF_ULINE 0x00002000
197     #define CONF_EXEMPTDLINE 0x00004000
198     #define CONF_GLINE 0x00008000
199    
200     #define CONF_SERVER_MASK CONF_SERVER
201     #define CONF_CLIENT_MASK (CONF_CLIENT | CONF_OPERATOR | CONF_SERVER_MASK)
202    
203     /* XXX temporary hack */
204     #define CONF_CRESV 0x80000001
205     #define CONF_NRESV 0x80000002
206    
207     #define IsConfIllegal(x) ((x)->status & CONF_ILLEGAL)
208     #define SetConfIllegal(x) ((x)->status |= CONF_ILLEGAL)
209     #define IsConfServer(x) ((x)->status == CONF_SERVER)
210     #define SetConfServer(x) ((x)->status = CONF_SERVER)
211     #define IsConfOperator(x) ((x)->status & CONF_OPERATOR)
212     #define IsConfHub(x) ((x)->status == CONF_HUB)
213     #define SetConfHub(x) ((x)->status = CONF_HUB)
214     #define IsConfLeaf(x) ((x)->status == CONF_LEAF)
215     #define SetConfLeaf(x) ((x)->status = CONF_LEAF)
216     #define IsConfHubOrLeaf(x) ((x)->status & (CONF_HUB|CONF_LEAF))
217     #define IsConfKill(x) ((x)->status == CONF_KILL)
218     #define IsConfClient(x) ((x)->status & CONF_CLIENT)
219     #define IsConfTypeOfClient(x) ((x)->status & CONF_CLIENT_MASK)
220     #define IsConfUline(x) ((x)->status & CONF_ULINE)
221     #define IsConfXline(x) ((x)->status & CONF_XLINE)
222     #define IsConfGline(x) ((x)->status == CONF_GLINE)
223    
224     /* AccessItem->flags */
225    
226     /* Generic flags... */
227     /* access flags... */
228     #define CONF_FLAGS_DO_IDENTD 0x00000001
229     #define CONF_FLAGS_LIMIT_IP 0x00000002
230     #define CONF_FLAGS_NO_TILDE 0x00000004
231     #define CONF_FLAGS_NEED_IDENTD 0x00000008
232     /* 0x00000010 */
233     #define CONF_FLAGS_NOMATCH_IP 0x00000020
234     #define CONF_FLAGS_EXEMPTKLINE 0x00000040
235     #define CONF_FLAGS_NOLIMIT 0x00000080
236     #define CONF_FLAGS_IDLE_LINED 0x00000100
237     #define CONF_FLAGS_SPOOF_IP 0x00000200
238     #define CONF_FLAGS_SPOOF_NOTICE 0x00000400
239     #define CONF_FLAGS_REDIR 0x00000800
240     #define CONF_FLAGS_EXEMPTGLINE 0x00001000
241     #define CONF_FLAGS_RESTRICTED 0x00002000
242     #define CONF_FLAGS_CAN_FLOOD 0x00100000
243     #define CONF_FLAGS_NEED_PASSWORD 0x00200000
244     /* server flags */
245     #define CONF_FLAGS_ALLOW_AUTO_CONN 0x00004000
246     #define CONF_FLAGS_LAZY_LINK 0x00008000
247     #define CONF_FLAGS_ENCRYPTED 0x00010000
248     #define CONF_FLAGS_COMPRESSED 0x00020000
249     #define CONF_FLAGS_TEMPORARY 0x00040000
250     #define CONF_FLAGS_CRYPTLINK 0x00080000
251     #define CONF_FLAGS_BURST_AWAY 0x00400000
252     #define CONF_FLAGS_EXEMPTRESV 0x00800000
253     #define CONF_FLAGS_TOPICBURST 0x01000000
254    
255     /* Macros for struct AccessItem */
256     #define IsLimitIp(x) ((x)->flags & CONF_FLAGS_LIMIT_IP)
257     #define IsNoTilde(x) ((x)->flags & CONF_FLAGS_NO_TILDE)
258     #define IsConfCanFlood(x) ((x)->flags & CONF_FLAGS_CAN_FLOOD)
259     #define IsNeedPassword(x) ((x)->flags & CONF_FLAGS_NEED_PASSWORD)
260     #define IsNeedIdentd(x) ((x)->flags & CONF_FLAGS_NEED_IDENTD)
261     #define IsNoMatchIp(x) ((x)->flags & CONF_FLAGS_NOMATCH_IP)
262     #define IsConfExemptKline(x) ((x)->flags & CONF_FLAGS_EXEMPTKLINE)
263     #define IsConfExemptLimits(x) ((x)->flags & CONF_FLAGS_NOLIMIT)
264     #define IsConfExemptGline(x) ((x)->flags & CONF_FLAGS_EXEMPTGLINE)
265     #define IsConfExemptResv(x) ((x)->flags & CONF_FLAGS_EXEMPTRESV)
266     #define IsConfIdlelined(x) ((x)->flags & CONF_FLAGS_IDLE_LINED)
267     #define IsConfDoIdentd(x) ((x)->flags & CONF_FLAGS_DO_IDENTD)
268     #define IsConfDoSpoofIp(x) ((x)->flags & CONF_FLAGS_SPOOF_IP)
269     #define IsConfSpoofNotice(x) ((x)->flags & CONF_FLAGS_SPOOF_NOTICE)
270     #define IsConfRestricted(x) ((x)->flags & CONF_FLAGS_RESTRICTED)
271     #define IsConfEncrypted(x) ((x)->flags & CONF_FLAGS_ENCRYPTED)
272     #define SetConfEncrypted(x) ((x)->flags |= CONF_FLAGS_ENCRYPTED)
273     #define ClearConfEncrypted(x) ((x)->flags &= ~CONF_FLAGS_ENCRYPTED)
274     #define IsConfCompressed(x) ((x)->flags & CONF_FLAGS_COMPRESSED)
275     #define SetConfCompressed(x) ((x)->flags |= CONF_FLAGS_COMPRESSED)
276     #define ClearConfCompressed(x) ((x)->flags &= ~CONF_FLAGS_COMPRESSED)
277     #define IsConfCryptLink(x) ((x)->flags & CONF_FLAGS_CRYPTLINK)
278     #define SetConfCryptLink(x) ((x)->flags |= CONF_FLAGS_CRYPTLINK)
279     #define ClearConfCryptLink(x) ((x)->flags &= ~CONF_FLAGS_CRYPTLINK)
280     #define IsConfLazyLink(x) ((x)->flags & CONF_FLAGS_LAZY_LINK)
281     #define SetConfLazyLink(x) ((x)->flags = CONF_FLAGS_LAZY_LINK)
282     #define ClearConfLazyLink(x) ((x)->flags &= ~CONF_FLAGS_LAZY_LINK)
283     #define IsConfAllowAutoConn(x) ((x)->flags & CONF_FLAGS_ALLOW_AUTO_CONN)
284     #define SetConfAllowAutoConn(x) ((x)->flags |= CONF_FLAGS_ALLOW_AUTO_CONN)
285     #define ClearConfAllowAutoConn(x) ((x)->flags &= ~CONF_FLAGS_ALLOW_AUTO_CONN)
286     #define IsConfTemporary(x) ((x)->flags & CONF_FLAGS_TEMPORARY)
287     #define SetConfTemporary(x) ((x)->flags |= CONF_FLAGS_TEMPORARY)
288     #define IsConfRedir(x) ((x)->flags & CONF_FLAGS_REDIR)
289     #define IsConfAwayBurst(x) ((x)->flags & CONF_FLAGS_BURST_AWAY)
290     #define SetConfAwayBurst(x) ((x)->flags |= CONF_FLAGS_BURST_AWAY)
291     #define ClearConfAwayBurst(x) ((x)->flags &= ~CONF_FLAGS_BURST_AWAY)
292     #define IsConfTopicBurst(x) ((x)->flags & CONF_FLAGS_TOPICBURST)
293     #define SetConfTopicBurst(x) ((x)->flags |= CONF_FLAGS_TOPICBURST)
294     #define ClearConfTopicBurst(x) ((x)->flags &= ~CONF_FLAGS_TOPICBURST)
295    
296     /* shared/cluster server entry types
297     * These defines are used for both shared and cluster.
298     */
299     #define SHARED_KLINE 0x0001
300     #define SHARED_TKLINE 0x0002
301     #define SHARED_UNKLINE 0x0004
302     #define SHARED_XLINE 0x0008
303     #define SHARED_TXLINE 0x0010
304     #define SHARED_UNXLINE 0x0020
305     #define SHARED_RESV 0x0040
306     #define SHARED_TRESV 0x0080
307     #define SHARED_UNRESV 0x0100
308     #define SHARED_LOCOPS 0x0200
309     #define SHARED_ALL (SHARED_KLINE | SHARED_TKLINE | SHARED_UNKLINE | \
310     SHARED_XLINE | SHARED_TXLINE | SHARED_UNXLINE | \
311     SHARED_RESV | SHARED_TRESV | SHARED_UNRESV |\
312     SHARED_LOCOPS)
313    
314     /* gline acl entry actions */
315     #define GDENY_BLOCK 0x1
316     #define GDENY_REJECT 0x2
317    
318     struct config_file_entry
319     {
320     const char *dpath; /* DPATH if set from command line */
321     const char *configfile;
322     const char *klinefile;
323     const char *xlinefile;
324     const char *rxlinefile;
325     const char *rklinefile;
326     const char *dlinefile;
327     const char *glinefile;
328     const char *cresvfile;
329     const char *nresvfile;
330    
331     char *logpath;
332     char *operlog;
333    
334     char *servlink_path;
335     char *egdpool_path;
336    
337     MessageFile motd;
338     MessageFile opermotd;
339     MessageFile linksfile;
340    
341     unsigned char compression_level;
342 michael 876 int max_watch;
343 adx 30 int gline_min_cidr;
344     int gline_min_cidr6;
345     int dot_in_ip6_addr;
346     int dots_in_ident;
347     int failed_oper_notice;
348     int anti_spam_exit_message_time;
349     int max_accept;
350     int max_nick_time;
351     int max_nick_changes;
352     int ts_max_delta;
353     int ts_warn_delta;
354     int anti_nick_flood;
355     int kline_with_reason;
356     int warn_no_nline;
357     int invisible_on_connect;
358 michael 584 int stats_e_disabled;
359 adx 30 int stats_o_oper_only;
360     int stats_k_oper_only;
361     int stats_i_oper_only;
362     int stats_P_oper_only;
363     int short_motd;
364     int no_oper_flood;
365     int true_no_oper_flood;
366     int oper_pass_resv;
367     int glines;
368     int hide_spoof_ips;
369     int burst_away;
370     int use_whois_actually;
371     int tkline_expire_notices;
372     int opers_bypass_callerid;
373     int ignore_bogus_ts;
374     char *kline_reason;
375     int pace_wait;
376     int pace_wait_simple;
377     int gline_time;
378     int gline_logging;
379     int idletime;
380     int oper_only_umodes;
381     int oper_umodes;
382     int max_targets;
383     int caller_id_wait;
384     int min_nonwildcard;
385     int min_nonwildcard_simple;
386     int kill_chase_time_limit;
387     int default_floodcount;
388     int client_flood;
389     /* 0 == don't use throttle... */
390     int throttle_time;
391     int use_egd;
392     int ping_cookie;
393     int disable_auth;
394     int disable_remote;
395     #ifdef HAVE_LIBCRYPTO
396     struct EncCapability *default_cipher_preference;
397     #endif
398     };
399    
400     struct config_channel_entry
401     {
402 michael 632 int disable_fake_channels;
403 adx 30 int restrict_channels;
404     int disable_local_channels;
405     int use_except;
406     int use_invex;
407     int use_knock;
408     int knock_delay;
409     int knock_delay_channel;
410     unsigned int max_bans;
411     unsigned int max_chans_per_user;
412     int no_create_on_split;
413     int no_join_on_split;
414     int quiet_on_ban;
415     int burst_topicwho;
416     int default_split_server_count;
417     int default_split_user_count;
418     };
419    
420     struct config_server_hide
421     {
422     int flatten_links;
423     int hide_servers;
424     char *hidden_name;
425     int links_delay;
426     int links_disabled;
427     int hidden;
428     int disable_hidden;
429     int hide_server_ips;
430     };
431    
432     struct server_info
433     {
434     char *name;
435     char *description;
436     char *network_name;
437     char *network_desc;
438     #ifdef HAVE_LIBCRYPTO
439     char *rsa_private_key_file;
440     RSA *rsa_private_key;
441     SSL_CTX *ctx;
442     #endif
443     char *sid;
444     int hub;
445     struct irc_ssaddr ip;
446     struct irc_ssaddr ip6;
447     int max_clients;
448     int specific_ipv4_vhost;
449     int specific_ipv6_vhost;
450     struct sockaddr_in dns_host;
451     int can_use_v6;
452     };
453    
454     struct admin_info
455     {
456     char *name;
457     char *description;
458     char *email;
459     };
460    
461     struct logging_entry
462     {
463     unsigned int use_logging;
464     char operlog[PATH_MAX + 1];
465     char userlog[PATH_MAX + 1];
466     char glinelog[PATH_MAX + 1];
467     char ioerrlog[PATH_MAX + 1];
468     char klinelog[PATH_MAX + 1];
469     char killlog[PATH_MAX + 1];
470     char operspylog[PATH_MAX + 1];
471     char failed_operlog[PATH_MAX + 1];
472     };
473    
474     extern int ypass;
475     extern dlink_list class_items;
476     extern dlink_list server_items;
477     extern dlink_list cluster_items;
478     extern dlink_list hub_items;
479     extern dlink_list rxconf_items;
480     extern dlink_list rkconf_items;
481     extern dlink_list leaf_items;
482     extern dlink_list temporary_klines;
483     extern dlink_list temporary_dlines;
484     extern dlink_list temporary_glines;
485     extern dlink_list temporary_xlines;
486     extern dlink_list temporary_rxlines;
487     extern dlink_list temporary_rklines;
488     extern struct logging_entry ConfigLoggingEntry;
489     extern struct config_file_entry ConfigFileEntry;/* defined in ircd.c*/
490     extern struct config_channel_entry ConfigChannel;/* defined in channel.c*/
491     extern struct config_server_hide ConfigServerHide; /* defined in s_conf.c */
492     extern struct server_info ServerInfo; /* defined in ircd.c */
493     extern struct admin_info AdminInfo; /* defined in ircd.c */
494     extern int valid_wild_card(struct Client *, int, int, ...);
495     /* End GLOBAL section */
496    
497     extern unsigned long get_sendq(struct Client *);
498     extern const char *get_client_class(struct Client *);
499     extern int get_client_ping(struct Client *, int *);
500     extern void check_class(void);
501     extern void init_class(void);
502     extern struct ConfItem *find_class(const char *);
503     extern void init_ip_hash_table(void);
504     extern void count_ip_hash(int *, unsigned long *);
505     extern void remove_one_ip(struct irc_ssaddr *);
506     extern struct ConfItem *make_conf_item(ConfType type);
507     extern void free_access_item(struct AccessItem *);
508     extern void read_conf_files(int);
509     extern int attach_conf(struct Client *, struct ConfItem *);
510     extern int attach_connect_block(struct Client *, const char *, const char *);
511    
512     extern int detach_conf(struct Client *, ConfType);
513    
514     extern struct ConfItem *find_conf_name(dlink_list *, const char *, ConfType);
515     extern struct ConfItem *find_conf_exact(ConfType, const char *, const char *, const char *);
516     extern struct AccessItem *find_kill(struct Client *);
517     extern struct AccessItem *find_gline(struct Client *);
518     extern int conf_connect_allowed(struct irc_ssaddr *, int);
519     extern char *oper_privs_as_string(const unsigned int);
520 michael 593 extern void split_nuh(struct split_nuh_item *);
521 adx 30 extern struct ConfItem *find_matching_name_conf(ConfType, const char *,
522     const char *, const char *, int);
523     extern struct ConfItem *find_exact_name_conf(ConfType, const char *,
524     const char *, const char *);
525     extern void delete_conf_item(struct ConfItem *);
526     extern void report_confitem_types(struct Client *, ConfType, int);
527     extern void yyerror(const char *);
528     extern int conf_yy_fatal_error(const char *);
529     extern int conf_fbgets(char *, unsigned int, FBFILE *);
530     extern void write_conf_line(struct Client *, struct ConfItem *,
531     const char *, time_t);
532     extern int remove_conf_line(ConfType, struct Client *, const char *,
533     const char *);
534     extern void add_temp_line(struct ConfItem *);
535     extern void cleanup_tklines(void *);
536     extern const char *get_conf_name(ConfType);
537     extern int rehash(int);
538 michael 593 extern int conf_add_server(struct ConfItem *, const char *);
539 adx 30 extern void conf_add_class_to_conf(struct ConfItem *, const char *);
540     extern void conf_add_d_conf(struct AccessItem *);
541    
542     /* XXX consider moving these into csvlib.h */
543     extern void parse_csv_file(FBFILE *, ConfType);
544    
545     extern char *get_oper_name(const struct Client *);
546    
547     extern void *map_to_conf(struct ConfItem *);
548     extern struct ConfItem *unmap_conf_item(void *);
549     /* XXX should the parse_aline stuff go into another file ?? */
550     #define AWILD 0x1 /* check wild cards */
551     #define NOUSERLOOKUP 0x2 /* Don't lookup the user@host on /rkline nick */
552     extern int parse_aline(const char *, struct Client *, int, char **,
553     int, char **, char **, time_t *, char **, char **);
554     extern int valid_comment(struct Client *, char *, int);
555    
556     /* XXX */
557     extern int yylex(void);
558    
559     #define TK_SECONDS 0
560     #define TK_MINUTES 1
561     extern time_t valid_tkline(char *, int);
562     extern int match_conf_password(const char *, const struct AccessItem *);
563    
564     #define NOT_AUTHORIZED (-1)
565 michael 618 #define I_LINE_FULL (-2)
566     #define TOO_MANY (-3)
567     #define BANNED_CLIENT (-4)
568     #define TOO_FAST (-5)
569 adx 30
570     #define CLEANUP_TKLINES_TIME 60
571    
572     extern void cluster_a_line(struct Client *,
573     const char *, int, int, const char *,...);
574     extern void rebuild_cidr_class(struct ConfItem *, struct ClassItem *);
575    
576     #endif /* INCLUDED_s_conf_h */

Properties

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