mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-10 23:23:12 +02:00
Similar to previous commit, move maxperip stuff from core to module.
This was in src/hash.c, src/list.c and src/modules/stats.c. Now all in src/modules/nick.c... or should this go into a new module? Again, this needs some more testing, like previous commit.
This commit is contained in:
@@ -436,7 +436,6 @@ extern void del_queries(const char *);
|
||||
#define NICK_HASH_TABLE_SIZE 32768
|
||||
#define CHAN_HASH_TABLE_SIZE 32768
|
||||
#define WHOWAS_HASH_TABLE_SIZE 32768
|
||||
#define IPUSERS_HASH_TABLE_SIZE 8192
|
||||
extern uint64_t siphash(const char *in, const char *k);
|
||||
extern uint64_t siphash_raw(const char *in, size_t len, const char *k);
|
||||
extern uint64_t siphash_nocase(const char *in, const char *k);
|
||||
@@ -462,12 +461,6 @@ extern Client *hash_find_id(const char *, Client *);
|
||||
extern Client *hash_find_nickatserver(const char *, Client *);
|
||||
extern Channel *find_channel(const char *name);
|
||||
extern Client *hash_find_server(const char *, Client *);
|
||||
extern IpUsersBucket *find_ipusers_bucket(Client *client);
|
||||
extern IpUsersBucket *add_ipusers_bucket(Client *client);
|
||||
extern void decrease_ipusers_bucket(Client *client);
|
||||
extern MODVAR IpUsersBucket *IpUsersHash_ipv4[IPUSERS_HASH_TABLE_SIZE];
|
||||
extern MODVAR IpUsersBucket *IpUsersHash_ipv6[IPUSERS_HASH_TABLE_SIZE];
|
||||
|
||||
|
||||
/* Mode externs
|
||||
*/
|
||||
|
||||
@@ -2469,15 +2469,6 @@ extern MODVAR SSL_CTX *ctx_client;
|
||||
|
||||
#define TLS_PROTOCOL_ALL 0xffff
|
||||
|
||||
typedef struct IpUsersBucket IpUsersBucket;
|
||||
struct IpUsersBucket
|
||||
{
|
||||
IpUsersBucket *prev, *next;
|
||||
char rawip[16];
|
||||
int local_clients;
|
||||
int global_clients;
|
||||
};
|
||||
|
||||
typedef struct CoreChannelModeTable CoreChannelModeTable;
|
||||
struct CoreChannelModeTable {
|
||||
long mode; /**< Mode value (which bit will be set) */
|
||||
|
||||
Reference in New Issue
Block a user