Public Member Functions | Data Fields
clientmap_entry_t Struct Reference

#include <geoip_stats.h>

Public Member Functions

 HT_ENTRY (clientmap_entry_t) node

Data Fields

tor_addr_t addr
char * transport_name
unsigned int last_seen_in_minutes:30
unsigned int action:2
dos_client_stats_t dos_stats

Detailed Description

Entry in a map from IP address to the last time we've seen an incoming connection from that IP address. Used by bridges only to track which countries have them blocked, or the DoS mitigation subsystem if enabled.

Definition at line 79 of file geoip_stats.h.

Field Documentation

◆ last_seen_in_minutes

unsigned int last_seen_in_minutes

Time when we last saw this IP address, in MINUTES since the epoch.

(This will run out of space around 4011 CE. If Tor is still in use around 4000 CE, please remember to add more bits to last_seen_in_minutes.)

Definition at line 90 of file geoip_stats.h.

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