tor  0.4.2.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 13 of file routerlist_st.h.

Field Documentation

◆ desc_by_eid_map

struct digest_sd_map_t* routerlist_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 25 of file routerlist_st.h.

Referenced by MOCK_IMPL().

◆ desc_digest_map

struct digest_sd_map_t* routerlist_t::desc_digest_map

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

Definition at line 18 of file routerlist_st.h.

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

◆ desc_store

desc_store_t routerlist_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 34 of file routerlist_st.h.

Referenced by desc_get_store(), and router_reload_router_list().

◆ extra_info_map

struct digest_ei_map_t* routerlist_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 21 of file routerlist_st.h.

Referenced by MOCK_IMPL().

◆ extrainfo_store

desc_store_t routerlist_t::extrainfo_store

Store holding extra-info documents.

Definition at line 36 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* routerlist_t::identity_map

Map from server identity digest to a member of routers.

Definition at line 15 of file routerlist_st.h.

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

◆ old_routers

smartlist_t* routerlist_t::old_routers

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

Definition at line 30 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* routerlist_t::routers

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