Tor 0.4.9.0-alpha-dev
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

◆ action

unsigned int action

Definition at line 91 of file geoip_stats.h.

◆ addr

tor_addr_t addr

Definition at line 81 of file geoip_stats.h.

◆ dos_stats

dos_client_stats_t dos_stats

Definition at line 95 of file geoip_stats.h.

◆ 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.

◆ transport_name

char* transport_name

Definition at line 84 of file geoip_stats.h.


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