| 123 |
|
int clients; /* Number of *LOCAL* clients using this */ |
| 124 |
|
int bits; |
| 125 |
|
int type; |
| 126 |
< |
struct irc_ssaddr my_ipnum; /* ip to bind to for outgoing connect */ |
| 127 |
< |
struct irc_ssaddr ipnum; /* ip to connect to */ |
| 126 |
> |
struct irc_ssaddr bind; /* ip to bind to for outgoing connect */ |
| 127 |
> |
struct irc_ssaddr addr; /* ip to connect to */ |
| 128 |
|
char * host; /* host part of user@host */ |
| 129 |
|
char * passwd; |
| 130 |
|
char * spasswd; /* Password to send. */ |
| 142 |
|
#endif |
| 143 |
|
void *regexuser; |
| 144 |
|
void *regexhost; |
| 145 |
+ |
dlink_list leaf_list; |
| 146 |
+ |
dlink_list hub_list; |
| 147 |
|
}; |
| 148 |
|
|
| 149 |
|
struct ClassItem |
| 181 |
|
#define CONF_OPERATOR 0x00000008 |
| 182 |
|
#define CONF_KLINE 0x00000010 |
| 183 |
|
#define CONF_CLASS 0x00000020 |
| 184 |
< |
#define CONF_LEAF 0x00000040 |
| 185 |
< |
#define CONF_LISTEN_PORT 0x00000080 |
| 186 |
< |
#define CONF_HUB 0x00000100 |
| 187 |
< |
#define CONF_EXEMPTKLINE 0x00000200 |
| 188 |
< |
#define CONF_DLINE 0x00000400 |
| 189 |
< |
#define CONF_XLINE 0x00000800 |
| 190 |
< |
#define CONF_ULINE 0x00001000 |
| 191 |
< |
#define CONF_EXEMPTDLINE 0x00002000 |
| 190 |
< |
#define CONF_GLINE 0x00004000 |
| 191 |
< |
#define CONF_SERVICE 0x00008000 |
| 184 |
> |
#define CONF_LISTEN_PORT 0x00000040 |
| 185 |
> |
#define CONF_EXEMPTKLINE 0x00000080 |
| 186 |
> |
#define CONF_DLINE 0x00000100 |
| 187 |
> |
#define CONF_XLINE 0x00000200 |
| 188 |
> |
#define CONF_ULINE 0x00000400 |
| 189 |
> |
#define CONF_EXEMPTDLINE 0x00000800 |
| 190 |
> |
#define CONF_GLINE 0x00001000 |
| 191 |
> |
#define CONF_SERVICE 0x00002000 |
| 192 |
|
|
| 193 |
|
#define CONF_SERVER_MASK CONF_SERVER |
| 194 |
|
#define CONF_CLIENT_MASK (CONF_CLIENT | CONF_OPERATOR | CONF_SERVER_MASK) |
| 202 |
|
#define IsConfServer(x) ((x)->status == CONF_SERVER) |
| 203 |
|
#define SetConfServer(x) ((x)->status = CONF_SERVER) |
| 204 |
|
#define IsConfOperator(x) ((x)->status & CONF_OPERATOR) |
| 205 |
– |
#define IsConfHub(x) ((x)->status == CONF_HUB) |
| 206 |
– |
#define SetConfHub(x) ((x)->status = CONF_HUB) |
| 207 |
– |
#define IsConfLeaf(x) ((x)->status == CONF_LEAF) |
| 208 |
– |
#define SetConfLeaf(x) ((x)->status = CONF_LEAF) |
| 209 |
– |
#define IsConfHubOrLeaf(x) ((x)->status & (CONF_HUB|CONF_LEAF)) |
| 205 |
|
#define IsConfKill(x) ((x)->status == CONF_KLINE) |
| 206 |
|
#define IsConfClient(x) ((x)->status & CONF_CLIENT) |
| 207 |
|
#define IsConfTypeOfClient(x) ((x)->status & CONF_CLIENT_MASK) |