Tor  0.4.7.0-alpha-dev
Data Fields
routerlist_t Struct Reference

#include <routerlist_st.h>

Data Fields

struct digest_ri_map_t * identity_map
 
struct digest_sd_map_t * desc_digest_map
 
struct digest_ei_map_t * extra_info_map
 
struct digest_sd_map_t * desc_by_eid_map
 
smartlist_trouters
 
smartlist_told_routers
 
desc_store_t desc_store
 
desc_store_t extrainfo_store
 

Detailed Description

Contents of a directory of onion routers.

Definition at line 18 of file routerlist_st.h.

Field Documentation

◆ desc_by_eid_map

struct digest_sd_map_t* desc_by_eid_map

Map from extra-info digests to a signed_descriptor_t for a router descriptor having that extra-info digest. Only exists for routers in routers or old_routers.

Definition at line 30 of file routerlist_st.h.

Referenced by extrainfo_insert(), and router_get_by_extrainfo_digest().

◆ desc_digest_map

struct digest_sd_map_t* desc_digest_map

Map from server descriptor digest to a signed_descriptor_t from routers or old_routers.

Definition at line 23 of file routerlist_st.h.

Referenced by router_get_by_descriptor_digest(), routerlist_assert_ok(), and routerlist_insert().

◆ desc_store

desc_store_t desc_store

Store holding server descriptors. If present, any router whose cache_info.saved_location == SAVED_IN_CACHE is stored in this file starting at cache_info.saved_offset

Definition at line 39 of file routerlist_st.h.

Referenced by desc_get_store(), and router_reload_router_list().

◆ extra_info_map

struct digest_ei_map_t* extra_info_map

Map from extra-info digest to an extrainfo_t. Only exists for routers in routers or old_routers.

Definition at line 26 of file routerlist_st.h.

Referenced by extrainfo_get_by_descriptor_digest().

◆ extrainfo_store

desc_store_t extrainfo_store

Store holding extra-info documents.

Definition at line 41 of file routerlist_st.h.

Referenced by desc_get_store(), router_add_extrainfo_to_routerlist(), and router_reload_router_list().

◆ identity_map

struct digest_ri_map_t* identity_map

Map from server identity digest to a member of routers.

Definition at line 20 of file routerlist_st.h.

Referenced by extrainfo_insert(), router_get_mutable_by_digest(), routerlist_assert_ok(), and routerlist_insert().

◆ old_routers

smartlist_t* old_routers

List of signed_descriptor_t for older router descriptors we're caching.

Definition at line 35 of file routerlist_st.h.

Referenced by dump_routerlist_mem_usage(), routerlist_insert(), routerlist_remove_old_cached_routers_with_id(), and update_extrainfo_downloads().

◆ routers

smartlist_t* routers

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