ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/include/conf.h
(Generate patch)

Comparing:
ircd-hybrid/include/s_conf.h (file contents), Revision 31 by knight, Sun Oct 2 20:34:05 2005 UTC vs.
ircd-hybrid-7.3/include/s_conf.h (file contents), Revision 1029 by michael, Sun Nov 8 13:10:50 2009 UTC

# Line 24 | Line 24
24  
25   #ifndef INCLUDED_s_conf_h
26   #define INCLUDED_s_conf_h
27 < #include "setup.h"
27 > #include "config.h"
28   #ifdef HAVE_LIBCRYPTO
29   #include <openssl/rsa.h>
30   #endif
# Line 33 | Line 33
33   #include "motd.h"               /* MessageFile */
34   #include "client.h"
35   #include "hook.h"
36 < #include "pcre.h"
36 >
37 >
38 > #define CONF_SERVER_INFO_TLS_VERSION_SSLV3 0x1
39 > #define CONF_SERVER_INFO_TLS_VERSION_TLSV1 0x2
40  
41   struct Client;
39 – struct DNSReply;
40 – struct hostent;
42  
42 – extern FBFILE *conf_fbfile_in;
43   extern struct Callback *client_check_cb;
44  
45 < typedef enum {  
45 > struct conf_parser_context
46 > {
47 >  unsigned int boot;
48 >  unsigned int pass;
49 >  FBFILE *conf_file;
50 > };
51 >
52 > extern struct conf_parser_context conf_parser_ctx;
53 >
54 > typedef enum
55 > {  
56    CONF_TYPE,
57    CLASS_TYPE,
58    OPER_TYPE,
# Line 64 | Line 74 | typedef enum {
74    GDENY_TYPE
75   } ConfType;
76  
77 + struct split_nuh_item
78 + {
79 +  dlink_node node;
80 +
81 +  char *nuhmask;
82 +  char *nickptr;
83 +  char *userptr;
84 +  char *hostptr;
85 +
86 +  size_t nicksize;
87 +  size_t usersize;
88 +  size_t hostsize;
89 + };
90 +
91   struct ConfItem
92   {
93 +  dlink_node node;      /* link into known ConfItems of this type */
94 +
95    char *name;           /* Primary key */
96 <  pcre *regexpname;
71 <  dlink_node node;      /* link into known ConfItems of this type */
96 >  void *regexpname;
97    unsigned int flags;
98    ConfType type;
99   };
# Line 92 | Line 117 | struct MatchItem
117   struct AccessItem
118   {
119    dlink_node node;
120 +  unsigned int     dns_failed;
121 +  unsigned int     dns_pending;
122    unsigned int     status;   /* If CONF_ILLEGAL, delete when no clients */
123    unsigned int     flags;
124 +  unsigned int     modes;
125 +  unsigned int     port;
126    int              clients;  /* Number of *LOCAL* clients using this */
127    struct irc_ssaddr my_ipnum; /* ip to bind to for outgoing connect */
128    struct irc_ssaddr ipnum;      /* ip to connect to */
# Line 103 | Line 132 | struct AccessItem
132    char *           reason;
133    char *           oper_reason;
134    char *           user;     /* user part of user@host */
106 –  int              port;
135    char *           fakename;   /* Mask name */
136    time_t           hold;     /* Hold action until this time (calendar time) */
137    struct ConfItem *class_ptr;  /* Class of connection */
110 –  struct DNSQuery* dns_query;
138    int              aftype;
139   #ifdef HAVE_LIBCRYPTO
140    char *           rsa_public_key_file;
141    RSA *            rsa_public_key;
142    struct EncCapability *cipher_preference;
143   #endif
144 <  pcre *regexuser;
145 <  pcre *regexhost;
144 >  void *regexuser;
145 >  void *regexhost;
146   };
147  
148   struct ClassItem
149   {
150 <  long max_sendq;
150 >  dlink_list list_ipv4;         /* base of per cidr ipv4 client link list */
151 >  dlink_list list_ipv6;         /* base of per cidr ipv6 client link list */
152 >  unsigned int max_sendq;
153    int con_freq;
154    int ping_freq;
155    int ping_warning;
# Line 133 | Line 162 | struct ClassItem
162    int cidr_bitlen_ipv4;
163    int cidr_bitlen_ipv6;
164    int number_per_cidr;
165 <  dlink_list list_ipv4;         /* base of per cidr ipv4 client link list */
137 <  dlink_list list_ipv6;         /* base of per cidr ipv6 client link list */
165 >  int active;
166   };
167  
168   struct CidrItem
169   {
170 +  dlink_node node;
171    struct irc_ssaddr mask;
172    int number_on_this_cidr;
144 –  dlink_node node;
173   };
174  
175   #define ConFreq(x)      ((x)->con_freq)
# Line 260 | Line 288 | struct CidrItem
288   #define IsConfCryptLink(x)      ((x)->flags & CONF_FLAGS_CRYPTLINK)
289   #define SetConfCryptLink(x)     ((x)->flags |= CONF_FLAGS_CRYPTLINK)
290   #define ClearConfCryptLink(x)   ((x)->flags &= ~CONF_FLAGS_CRYPTLINK)
263 – #define IsConfLazyLink(x)       ((x)->flags & CONF_FLAGS_LAZY_LINK)
264 – #define SetConfLazyLink(x)      ((x)->flags = CONF_FLAGS_LAZY_LINK)
265 – #define ClearConfLazyLink(x)    ((x)->flags &= ~CONF_FLAGS_LAZY_LINK)
291   #define IsConfAllowAutoConn(x)  ((x)->flags & CONF_FLAGS_ALLOW_AUTO_CONN)
292   #define SetConfAllowAutoConn(x) ((x)->flags |= CONF_FLAGS_ALLOW_AUTO_CONN)
293   #define ClearConfAllowAutoConn(x) ((x)->flags &= ~CONF_FLAGS_ALLOW_AUTO_CONN)
# Line 328 | Line 353 | struct config_file_entry
353    int dots_in_ident;
354    int failed_oper_notice;
355    int anti_spam_exit_message_time;
356 <  int max_accept;
356 >  unsigned int max_accept;
357 >  unsigned int max_watch;
358    int max_nick_time;
359 <  int max_nick_changes;
359 >  unsigned int max_nick_changes;
360    int ts_max_delta;
361    int ts_warn_delta;
362    int anti_nick_flood;
363    int kline_with_reason;
364    int warn_no_nline;
365    int invisible_on_connect;
366 +  int stats_e_disabled;
367    int stats_o_oper_only;
368    int stats_k_oper_only;
369    int stats_i_oper_only;
# Line 380 | Line 407 | struct config_file_entry
407  
408   struct config_channel_entry
409   {
410 +  int disable_fake_channels;
411    int restrict_channels;
412    int disable_local_channels;
413    int use_except;
# Line 387 | Line 415 | struct config_channel_entry
415    int use_knock;
416    int knock_delay;
417    int knock_delay_channel;
390 –  int invite_ops_only;
418    unsigned int max_bans;
419    unsigned int max_chans_per_user;
420    int no_create_on_split;
# Line 400 | Line 427 | struct config_channel_entry
427  
428   struct config_server_hide
429   {
430 +  char *hidden_name;
431    int flatten_links;
432    int hide_servers;
405 –  char *hidden_name;
433    int links_delay;
434    int links_disabled;
435    int hidden;
# Line 412 | Line 439 | struct config_server_hide
439  
440   struct server_info
441   {
442 +  char *sid;
443    char *name;
444    char *description;
445    char *network_name;
# Line 419 | Line 447 | struct server_info
447   #ifdef HAVE_LIBCRYPTO
448    char *rsa_private_key_file;
449    RSA *rsa_private_key;
450 <  SSL_CTX *ctx;
450 >  SSL_CTX *server_ctx;
451 >  SSL_CTX *client_ctx;
452 >  unsigned int tls_version;
453   #endif
424 –  char *sid;
454    int hub;
455    struct irc_ssaddr ip;
456    struct irc_ssaddr ip6;
457 <  int max_clients;
457 >  unsigned int max_clients;
458    int specific_ipv4_vhost;
459    int specific_ipv6_vhost;
460    struct sockaddr_in dns_host;
# Line 452 | Line 481 | struct logging_entry
481    char failed_operlog[PATH_MAX + 1];
482   };
483  
484 < extern unsigned int scount;
456 < extern int ypass;
484 > extern dlink_list gdeny_items;
485   extern dlink_list class_items;
486   extern dlink_list server_items;
487   extern dlink_list cluster_items;
# Line 476 | Line 504 | extern struct admin_info AdminInfo;
504   extern int valid_wild_card(struct Client *, int, int, ...);
505   /* End GLOBAL section */
506  
507 < extern unsigned long get_sendq(struct Client *);
507 > extern unsigned int get_sendq(struct Client *);
508   extern const char *get_client_class(struct Client *);
509   extern int get_client_ping(struct Client *, int *);
510   extern void check_class(void);
511   extern void init_class(void);
512   extern struct ConfItem *find_class(const char *);
513   extern void init_ip_hash_table(void);
514 < extern void count_ip_hash(int *, unsigned long *);
514 > extern void count_ip_hash(unsigned int *, uint64_t *);
515   extern void remove_one_ip(struct irc_ssaddr *);
516   extern struct ConfItem *make_conf_item(ConfType type);
517   extern void free_access_item(struct AccessItem *);
# Line 499 | Line 527 | extern struct AccessItem *find_kill(stru
527   extern struct AccessItem *find_gline(struct Client *);
528   extern int conf_connect_allowed(struct irc_ssaddr *, int);
529   extern char *oper_privs_as_string(const unsigned int);
530 < extern void split_nuh(char *mask, char **nick, char **user, char **host);
530 > extern void split_nuh(struct split_nuh_item *);
531   extern struct ConfItem *find_matching_name_conf(ConfType, const char *,
532                                                  const char *, const char *, int);
533   extern struct ConfItem *find_exact_name_conf(ConfType, const char *,
# Line 517 | Line 545 | extern void add_temp_line(struct ConfIte
545   extern void cleanup_tklines(void *);
546   extern const char *get_conf_name(ConfType);
547   extern int rehash(int);
548 < extern int conf_add_server(struct ConfItem *, unsigned int, const char *);
548 > extern int conf_add_server(struct ConfItem *, const char *);
549   extern void conf_add_class_to_conf(struct ConfItem *, const char *);
522 – extern void conf_add_d_conf(struct AccessItem *);
550  
551   /* XXX consider moving these into csvlib.h */
552   extern void parse_csv_file(FBFILE *, ConfType);
# Line 535 | Line 562 | extern int parse_aline(const char *, str
562                         int, char **, char **, time_t *, char **, char **);
563   extern int valid_comment(struct Client *, char *, int);
564  
538 – /* XXX */
539 – extern int yylex(void);
565  
566   #define TK_SECONDS 0
567   #define TK_MINUTES 1
# Line 544 | Line 569 | extern time_t valid_tkline(char *, int);
569   extern int match_conf_password(const char *, const struct AccessItem *);
570  
571   #define NOT_AUTHORIZED    (-1)
572 < #define IRCD_SOCKET_ERROR (-2)
573 < #define I_LINE_FULL       (-3)
574 < #define TOO_MANY          (-4)
575 < #define BANNED_CLIENT     (-5)
551 < #define TOO_FAST          (-6)
572 > #define I_LINE_FULL       (-2)
573 > #define TOO_MANY          (-3)
574 > #define BANNED_CLIENT     (-4)
575 > #define TOO_FAST          (-5)
576  
577   #define CLEANUP_TKLINES_TIME 60
578  
# Line 556 | Line 580 | extern void cluster_a_line(struct Client
580                             const char *, int, int, const char *,...);
581   extern void rebuild_cidr_class(struct ConfItem *, struct ClassItem *);
582  
583 + /* XXX **/
584 + extern int yylex(void);
585 +
586   #endif /* INCLUDED_s_conf_h */

Comparing:
ircd-hybrid/include/s_conf.h (property svn:keywords), Revision 31 by knight, Sun Oct 2 20:34:05 2005 UTC vs.
ircd-hybrid-7.3/include/s_conf.h (property svn:keywords), Revision 1029 by michael, Sun Nov 8 13:10:50 2009 UTC

# Line 1 | Line 1
1 < "Id Revision"
1 > Id Revision

Diff Legend

– Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)