OpenVPN
Data Fields
initial_packet_rate_limit Struct Reference

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
 

Detailed Description

struct that handles all the rate limiting logic for initial responses

Definition at line 30 of file reflect_filter.h.

Field Documentation

◆ curr_period_counter

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().

◆ last_period_reset

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().

◆ max_per_period

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().

◆ period_length

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().

◆ warning_displayed

bool initial_packet_rate_limit::warning_displayed

Definition at line 46 of file reflect_filter.h.

Referenced by reflect_filter_rate_limit_check().


The documentation for this struct was generated from the following file: