OpenVPN
|
struct that handles all the rate limiting logic for initial responses More...
#include <reflect_filter.h>
Data Fields | |
int64_t | max_per_period |
This is a hard limit for packets per seconds. More... | |
int | period_length |
period length in seconds More... | |
int64_t | curr_period_counter |
Number of packets in the current period. More... | |
time_t | last_period_reset |
bool | warning_displayed |
struct that handles all the rate limiting logic for initial responses
Definition at line 30 of file reflect_filter.h.
int64_t initial_packet_rate_limit::curr_period_counter |
Number of packets in the current period.
We use int64_t here to avoid any potiential issues with overflow
Definition at line 39 of file reflect_filter.h.
Referenced by initial_rate_limit_init(), reflect_filter_rate_limit_check(), and reflect_filter_rate_limit_decrease().
time_t initial_packet_rate_limit::last_period_reset |
Definition at line 42 of file reflect_filter.h.
Referenced by initial_rate_limit_init(), and reflect_filter_rate_limit_check().
int64_t initial_packet_rate_limit::max_per_period |
This is a hard limit for packets per seconds.
Definition at line 32 of file reflect_filter.h.
Referenced by initial_rate_limit_init(), and reflect_filter_rate_limit_check().
int initial_packet_rate_limit::period_length |
period length in seconds
Definition at line 35 of file reflect_filter.h.
Referenced by initial_rate_limit_init(), and reflect_filter_rate_limit_check().
bool initial_packet_rate_limit::warning_displayed |
Definition at line 46 of file reflect_filter.h.
Referenced by reflect_filter_rate_limit_check().