1
0
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:
Bram Matthys
2024-09-14 20:11:56 +02:00
parent 710afe7cc7
commit 2ef39497c7
7 changed files with 220 additions and 172 deletions
-7
View File
@@ -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
*/
-9
View File
@@ -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) */