mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-10 21:23:12 +02:00
- Compile fixes regarding throttling
- Fix when you use another make than make
This commit is contained in:
@@ -1778,3 +1778,5 @@ seen. gmtime warning still there
|
||||
- One more fix to the above
|
||||
- Patch by Syzop to fix a bug in the resolver
|
||||
- Preperations for beta14. Will be a recommended upgrade
|
||||
- Compile fixes regarding throttling
|
||||
- Fix when you use another make than make
|
||||
|
||||
@@ -65,21 +65,6 @@ typedef struct hashentry {
|
||||
*/
|
||||
#ifdef THROTTLING
|
||||
#define THROTTLING_HASH_SIZE 1024
|
||||
|
||||
struct ThrottlingBucket
|
||||
{
|
||||
struct ThrottlingBucket *next, *prev;
|
||||
struct IN_ADDR in;
|
||||
time_t since;
|
||||
};
|
||||
|
||||
void init_throttling_hash();
|
||||
int hash_throttling(struct IN_ADDR *in);
|
||||
struct ThrottlingBucket *find_throttling_bucket(struct IN_ADDR *in);
|
||||
void add_throttling_bucket(struct IN_ADDR *in);
|
||||
void del_throttling_bucket(struct ThrottlingBucket *bucket);
|
||||
int throttle_can_connect(struct IN_ADDR *in);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -87,5 +72,4 @@ int throttle_can_connect(struct IN_ADDR *in);
|
||||
|
||||
#define find_channel hash_find_channel
|
||||
|
||||
|
||||
#endif /* __hash_include__ */
|
||||
|
||||
@@ -1443,5 +1443,24 @@ struct Command {
|
||||
#endif
|
||||
};
|
||||
|
||||
#ifdef THROTTLING
|
||||
|
||||
struct ThrottlingBucket
|
||||
{
|
||||
struct ThrottlingBucket *next, *prev;
|
||||
struct IN_ADDR in;
|
||||
time_t since;
|
||||
};
|
||||
|
||||
void init_throttling_hash();
|
||||
int hash_throttling(struct IN_ADDR *in);
|
||||
struct ThrottlingBucket *find_throttling_bucket(struct IN_ADDR *in);
|
||||
void add_throttling_bucket(struct IN_ADDR *in);
|
||||
void del_throttling_bucket(struct ThrottlingBucket *bucket);
|
||||
int throttle_can_connect(struct IN_ADDR *in);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* __struct_include__ */
|
||||
|
||||
|
||||
+2
-2
@@ -53,7 +53,7 @@ all: build
|
||||
build: ircd mods
|
||||
|
||||
custommodule:
|
||||
cd modules; make $(MAKEARGS) MODULEFILE=$(MODULEFILE) EXLIBS=$(EXLIBS) custommodule
|
||||
cd modules; $(MAKE) MODULEFILE=$(MODULEFILE) EXLIBS=$(EXLIBS) custommodule
|
||||
|
||||
ircd: $(OBJS)
|
||||
$(CC) $(CFLAGS) $(CRYPTOLIB) -o ircd $(OBJS) $(LDFLAGS) $(IRCDLIBS) $(CRYPTOLIB)
|
||||
@@ -76,7 +76,7 @@ mods:
|
||||
@if [ ! -r modules ] ; then \
|
||||
echo "You havent done cvs update -P -d"; \
|
||||
fi
|
||||
cd modules; make $(MAKEARGS) all
|
||||
cd modules; $(MAKE) all
|
||||
|
||||
version.c: version.c.SH ../Changes
|
||||
$(SHELL) version.c.SH
|
||||
|
||||
Reference in New Issue
Block a user