Tor 0.4.9.8
Loading...
Searching...
No Matches
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 82 of file geoip_stats.h.

Field Documentation

◆ action

unsigned int action

Definition at line 94 of file geoip_stats.h.

◆ addr

tor_addr_t addr

Definition at line 84 of file geoip_stats.h.

◆ dos_stats

dos_client_stats_t dos_stats

Definition at line 98 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 93 of file geoip_stats.h.

Referenced by geoip_note_client_seen().

◆ transport_name

char* transport_name

Definition at line 87 of file geoip_stats.h.


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