26#ifndef ROUTING_BLOCKED_ENDPOINT_INCLUDED
27#define ROUTING_BLOCKED_ENDPOINT_INCLUDED
63#ifdef NET_TS_HAS_UNIX_SOCKET
Definition: blocked_endpoints.h:34
uint64_t increment_error_count(const net::ip::tcp::endpoint &endpoint)
increments the error count of an endpoint.
Definition: blocked_endpoints.cc:45
const uint64_t max_connect_errors_
Max connect errors blocking hosts when handshake not completed.
Definition: blocked_endpoints.h:90
std::map< net::ip::address_v4, uint64_t > conn_error_counters_v4_
Connection error counters for IPv4 hosts.
Definition: blocked_endpoints.h:93
BlockedEndpoints(uint64_t max_connect_errors)
Definition: blocked_endpoints.h:36
uint64_t max_connect_errors() const
Definition: blocked_endpoints.h:39
bool is_blocked(const net::ip::tcp::endpoint &endpoint) const
Definition: blocked_endpoints.cc:75
std::mutex mutex_conn_errors_
Definition: blocked_endpoints.h:87
std::map< net::ip::address_v6, uint64_t > conn_error_counters_v6_
Connection error counters for IPv4 hosts.
Definition: blocked_endpoints.h:96
uint64_t error_count(const net::ip::tcp::endpoint &endpoint) const
Definition: blocked_endpoints.cc:30
std::vector< std::string > get_blocked_client_hosts() const
Returns list of blocked client hosts.
Definition: blocked_endpoints.cc:80
uint64_t reset_error_count(const net::ip::tcp::endpoint &endpoint)
resets error counter for an endpoint.
Definition: blocked_endpoints.cc:58
Definition: internet.h:678