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 */ |
132 |
|
char * reason; |
133 |
|
char * oper_reason; |
134 |
|
char * user; /* user part of user@host */ |
134 |
– |
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 */ |
147 |
|
|
148 |
|
struct ClassItem |
149 |
|
{ |
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; |
162 |
|
int cidr_bitlen_ipv4; |
163 |
|
int cidr_bitlen_ipv6; |
164 |
|
int number_per_cidr; |
163 |
– |
dlink_list list_ipv4; /* base of per cidr ipv4 client link list */ |
164 |
– |
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; |
172 |
– |
dlink_node node; |
173 |
|
}; |
174 |
|
|
175 |
|
#define ConFreq(x) ((x)->con_freq) |
427 |
|
|
428 |
|
struct config_server_hide |
429 |
|
{ |
430 |
+ |
char *hidden_name; |
431 |
|
int flatten_links; |
432 |
|
int hide_servers; |
432 |
– |
char *hidden_name; |
433 |
|
int links_delay; |
434 |
|
int links_disabled; |
435 |
|
int hidden; |
439 |
|
|
440 |
|
struct server_info |
441 |
|
{ |
442 |
+ |
char *sid; |
443 |
|
char *name; |
444 |
|
char *description; |
445 |
|
char *network_name; |
451 |
|
SSL_CTX *client_ctx; |
452 |
|
unsigned int tls_version; |
453 |
|
#endif |
453 |
– |
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; |