#include "class.h"
#include "client.h"
#include "common.h"
-#include "patricia.h"
struct Client;
struct DNSReply;
struct ip_value
{
- struct irc_sockaddr_storage ip;
+ struct rb_sockaddr_storage ip;
int ip_mask;
int type;
};
time_t hold; /* Hold action until this time (calendar time) */
char *className; /* Name of class */
struct Class *c_class; /* Class of connection */
- patricia_node_t *pnode; /* Our patricia node */
+ rb_patricia_node_t *pnode; /* Our patricia node */
};
#define CONF_ILLEGAL 0x80000000
-#define CONF_QUARANTINED_NICK 0x0001
#define CONF_CLIENT 0x0002
#define CONF_KILL 0x0040
#define CONF_XLINE 0x0080
#define CONF_RESV_NICK 0x0200
#define CONF_RESV (CONF_RESV_CHANNEL | CONF_RESV_NICK)
-#define CONF_CLASS 0x0400
-#define CONF_LISTEN_PORT 0x1000
-#define CONF_EXEMPTKLINE 0x4000
-#define CONF_NOLIMIT 0x8000
-#define CONF_GLINE 0x10000
#define CONF_DLINE 0x20000
#define CONF_EXEMPTDLINE 0x100000
/* Generic flags... */
/* access flags... */
-#define CONF_FLAGS_DO_IDENTD 0x00000001
-#define CONF_FLAGS_LIMIT_IP 0x00000002
#define CONF_FLAGS_NO_TILDE 0x00000004
#define CONF_FLAGS_NEED_IDENTD 0x00000008
-#define CONF_FLAGS_PASS_IDENTD 0x00000010
-#define CONF_FLAGS_NOMATCH_IP 0x00000020
#define CONF_FLAGS_EXEMPTKLINE 0x00000040
#define CONF_FLAGS_NOLIMIT 0x00000080
-#define CONF_FLAGS_IDLE_LINED 0x00000100
#define CONF_FLAGS_SPOOF_IP 0x00000200
#define CONF_FLAGS_SPOOF_NOTICE 0x00000400
#define CONF_FLAGS_REDIR 0x00000800
-#define CONF_FLAGS_EXEMPTGLINE 0x00001000
#define CONF_FLAGS_EXEMPTRESV 0x00002000 /* exempt from resvs */
#define CONF_FLAGS_EXEMPTFLOOD 0x00004000
#define CONF_FLAGS_EXEMPTSPAMBOT 0x00008000
/* Macros for struct ConfItem */
-#define IsLimitIp(x) ((x)->flags & CONF_FLAGS_LIMIT_IP)
#define IsNoTilde(x) ((x)->flags & CONF_FLAGS_NO_TILDE)
#define IsNeedIdentd(x) ((x)->flags & CONF_FLAGS_NEED_IDENTD)
-#define IsPassIdentd(x) ((x)->flags & CONF_FLAGS_PASS_IDENTD)
-#define IsNoMatchIp(x) ((x)->flags & CONF_FLAGS_NOMATCH_IP)
#define IsConfExemptKline(x) ((x)->flags & CONF_FLAGS_EXEMPTKLINE)
#define IsConfExemptLimits(x) ((x)->flags & CONF_FLAGS_NOLIMIT)
-#define IsConfExemptGline(x) ((x)->flags & CONF_FLAGS_EXEMPTGLINE)
#define IsConfExemptFlood(x) ((x)->flags & CONF_FLAGS_EXEMPTFLOOD)
#define IsConfExemptSpambot(x) ((x)->flags & CONF_FLAGS_EXEMPTSPAMBOT)
#define IsConfExemptShide(x) ((x)->flags & CONF_FLAGS_EXEMPTSHIDE)
#define IsConfExemptJupe(x) ((x)->flags & CONF_FLAGS_EXEMPTJUPE)
#define IsConfExemptResv(x) ((x)->flags & CONF_FLAGS_EXEMPTRESV)
-#define IsConfIdlelined(x) ((x)->flags & CONF_FLAGS_IDLE_LINED)
-#define IsConfDoIdentd(x) ((x)->flags & CONF_FLAGS_DO_IDENTD)
#define IsConfDoSpoofIp(x) ((x)->flags & CONF_FLAGS_SPOOF_IP)
#define IsConfSpoofNotice(x) ((x)->flags & CONF_FLAGS_SPOOF_NOTICE)
#define IsConfEncrypted(x) ((x)->flags & CONF_FLAGS_ENCRYPTED)
char *fname_foperlog;
char *fname_serverlog;
char *fname_killlog;
- char *fname_glinelog;
char *fname_klinelog;
char *fname_operspylog;
char *fname_ioerrorlog;
unsigned char compression_level;
int disable_fake_channels;
- int dot_in_ip6_addr;
int dots_in_ident;
int failed_oper_notice;
int anti_nick_flood;
int pace_wait_simple;
int short_motd;
int no_oper_flood;
- int glines;
- int gline_time;
- int gline_min_cidr;
- int gline_min_cidr6;
- int idletime;
int hide_server;
int hide_spoof_ips;
int hide_error_messages;
char *network_desc;
int hub;
struct sockaddr_in ip;
-#ifdef IPV6
+ int default_max_clients;
+#ifdef RB_IPV6
struct sockaddr_in6 ip6;
#endif
int specific_ipv4_vhost;
-#ifdef IPV6
+#ifdef RB_IPV6
int specific_ipv6_vhost;
#endif
-
- int max_clients;
+ char *ssl_private_key;
+ char *ssl_ca_cert;
+ char *ssl_cert;
+ char *ssl_dh_params;
+ int ssld_count;
};
struct admin_info
extern struct admin_info AdminInfo; /* defined in ircd.c */
/* End GLOBAL section */
-dlink_list service_list;
+rb_dlink_list service_list;
typedef enum temp_list
{
LAST_TEMP_TYPE
} temp_list;
-dlink_list temp_klines[LAST_TEMP_TYPE];
-dlink_list temp_dlines[LAST_TEMP_TYPE];
+rb_dlink_list temp_klines[LAST_TEMP_TYPE];
+rb_dlink_list temp_dlines[LAST_TEMP_TYPE];
extern void init_s_conf(void);
extern void add_temp_kline(struct ConfItem *);
extern void add_temp_dline(struct ConfItem *);
extern void report_temp_klines(struct Client *);
-extern void show_temp_klines(struct Client *, dlink_list *);
+extern void show_temp_klines(struct Client *, rb_dlink_list *);
extern const char *get_conf_name(KlineType);
extern int rehash(int);