ze-filter
(ze-filter-0.8.0-develop-180218)
|
Go to the source code of this file.
Classes | |
struct | HStat_T |
struct | ThrottleData |
Macros | |
#define | LOG_LEVEL 11 |
#define | DIM_HI 1024 |
#define | DIM_SHFT 6 |
#define | DIM_LO (DIM_HI >> DIM_SHFT) |
#define | DIM_RAP (DIM_HI / DIM_LO) |
#define | THROTTLE_LOCK() |
#define | THROTTLE_UNLOCK() |
#define | HOLD_TIME 120 |
#define | DOS_COEF 5.0 |
Typedefs | |
typedef struct HStat_T | HStat_T |
typedef struct ThrottleData | ThrottleData |
Functions | |
void | add_throttle_entry (time_t) |
void | update_throttle (time_t) |
double | poisson_upper_bound (double, double) |
void | throttle_free () |
int | throttle_resize (size_t sza, size_t szb) |
bool | check_throttle_dos () |
bool | update_throttle_dos () |
void | log_throttle_stats () |
#define DIM_HI 1024 |
Definition at line 48 of file ze-throttle.c.
Definition at line 50 of file ze-throttle.c.
Definition at line 51 of file ze-throttle.c.
#define DIM_SHFT 6 |
Definition at line 49 of file ze-throttle.c.
#define DOS_COEF 5.0 |
Definition at line 253 of file ze-throttle.c.
#define HOLD_TIME 120 |
Definition at line 248 of file ze-throttle.c.
#define LOG_LEVEL 11 |
Definition at line 33 of file ze-throttle.c.
#define THROTTLE_LOCK | ( | ) |
Definition at line 67 of file ze-throttle.c.
#define THROTTLE_UNLOCK | ( | ) |
Definition at line 72 of file ze-throttle.c.
typedef struct ThrottleData ThrottleData |
Definition at line 63 of file ze-throttle.c.
void add_throttle_entry | ( | time_t | t | ) |
Definition at line 148 of file ze-throttle.c.
bool check_throttle_dos | ( | void | ) |
Definition at line 239 of file ze-throttle.c.
void log_throttle_stats | ( | void | ) |
Definition at line 313 of file ze-throttle.c.
double poisson_upper_bound | ( | double | lambda, |
double | prob | ||
) |
Definition at line 330 of file ze-throttle.c.
void throttle_free | ( | ) |
Definition at line 119 of file ze-throttle.c.
int throttle_resize | ( | size_t | sza, |
size_t | szb | ||
) |
Definition at line 132 of file ze-throttle.c.
void update_throttle | ( | time_t | t | ) |
Definition at line 186 of file ze-throttle.c.
bool update_throttle_dos | ( | ) |
Definition at line 256 of file ze-throttle.c.