addressmap_entry_t Struct Reference


Data Fields

char * new_address
time_t expires
addressmap_entry_source_t source:3
short num_resolve_failures

Detailed Description

A client-side struct to remember requests to rewrite addresses to new addresses. These structs are stored in the hash table "addressmap" below.

There are 5 ways to set an address mapping:

When an addressmap request is made but one is already registered, the new one is replaced only if the currently registered one has no "new_address" (that is, it's in the process of DNS resolve), or if the new one is permanent (expires==0 or 1).

(We overload the 'expires' field, using "0" for mappings set via the configuration file, "1" for mappings set from the control interface, and other values for DNS and TrackHostExit mappings that can expire.)


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

Generated on Tue May 25 00:31:05 2010 for tor by  doxygen 1.5.6