connlim / noconnlim commands added to support connection / connectio rate limits

This commit is contained in:
z3APA3A committed 2018-01-12 19:09:42 +03:00
1 parent e076fff33c
commit ff91a6fe72
8 files changed
+168 -23

No files matched your search

+13 -2
View File
@@ -299,11 +299,21 @@ struct ace {
struct bandlim {
struct bandlim *next;
struct ace *ace;
unsigned basetime;
unsigned rate;
time_t basetime;
unsigned nexttime;
unsigned rate;
};
struct connlim {
struct connlim *next;
struct ace *ace;
time_t basetime;
uint64_t rating;
unsigned period;
unsigned rate;
};
typedef enum {NONE, MINUTELY, HOURLY, DAILY, WEEKLY, MONTHLY, ANNUALLY, NEVER} ROTATION;
struct schedule {
@@ -528,6 +538,7 @@ struct extparam {
struct ace * acl;
char * conffile;
struct bandlim * bandlimiter, *bandlimiterout;
struct connlim * connlimiter;
struct trafcount * trafcounter;
struct srvparam *services;
int stacksize,