Tor
0.4.7.0-alpha-dev
|
What kind of directory authority are we? More...
#include "core/or/or.h"
#include "app/config/config.h"
#include "feature/dirauth/authmode.h"
#include "feature/nodelist/routerinfo_st.h"
Go to the source code of this file.
Functions | |
int | authdir_mode (const or_options_t *options) |
int | authdir_mode_v3 (const or_options_t *options) |
int | authdir_mode_handles_descs (const or_options_t *options, int purpose) |
int | authdir_mode_publishes_statuses (const or_options_t *options) |
int | authdir_mode_tests_reachability (const or_options_t *options) |
int | authdir_mode_bridge (const or_options_t *options) |
What kind of directory authority are we?
If we're not an authority, these functions are all replaced with 0 in authmode.h.
Definition in file authmode.c.
int authdir_mode | ( | const or_options_t * | options | ) |
Return true iff we believe ourselves to be an authoritative directory server.
Definition at line 25 of file authmode.c.
Referenced by authdir_mode_bridge(), authdir_mode_publishes_statuses(), authdir_mode_tests_reachability(), decide_to_advertise_dir_impl(), get_voting_interval(), nodelist_set_routerinfo(), options_act_dirauth_mtbf(), rep_history_clean(), router_should_advertise_dirport(), tor_cleanup(), and update_consensus_router_descriptor_downloads().
int authdir_mode_bridge | ( | const or_options_t * | options | ) |
Return true iff we believe ourselves to be a bridge authoritative directory server.
Definition at line 76 of file authmode.c.
Referenced by authdir_mode_publishes_statuses().
int authdir_mode_handles_descs | ( | const or_options_t * | options, |
int | purpose | ||
) |
Return true iff we are an authoritative directory server that is authoritative about receiving and serving descriptors of type purpose on its dirport.
Definition at line 43 of file authmode.c.
Referenced by dirserv_should_launch_reachability_test(), and router_add_to_routerlist().
int authdir_mode_publishes_statuses | ( | const or_options_t * | options | ) |
Return true iff we are an authoritative directory server that publishes its own network statuses.
Definition at line 58 of file authmode.c.
int authdir_mode_tests_reachability | ( | const or_options_t * | options | ) |
Return true iff we are an authoritative directory server that tests reachability of the descriptors it learns about.
Definition at line 68 of file authmode.c.
Referenced by launch_reachability_tests_callback(), save_stability_callback(), and tor_cleanup().