selftest.h File Reference

Header file for selftest.c. More...

Go to the source code of this file.


int check_whether_orport_reachable (const struct or_options_t *options)
int check_whether_dirport_reachable (const struct or_options_t *options)
void router_do_reachability_checks (int test_or, int test_dir)
void router_orport_found_reachable (void)
void router_dirport_found_reachable (void)
void router_perform_bandwidth_test (int num_circs, time_t now)

Detailed Description

Header file for selftest.c.

Definition in file selftest.h.

Function Documentation

◆ router_dirport_found_reachable()

void router_dirport_found_reachable ( void  )

Annotate that we found our DirPort reachable.

Definition at line 245 of file selftest.c.

◆ router_do_reachability_checks()

void router_do_reachability_checks ( int  test_or,
int  test_dir 

Some time has passed, or we just got new directory information. See if we currently believe our ORPort or DirPort to be unreachable. If so, launch a new test for it.

For ORPort, we simply try making a circuit that ends at ourselves. Success is noticed in onionskin_answer().

For DirPort, we make a connection via Tor to our DirPort and ask for our own server descriptor. Success is noticed in connection_dir_client_reached_eof().

Definition at line 170 of file selftest.c.

Referenced by check_for_reachability_bw_callback(), and directory_info_has_arrived().

◆ router_orport_found_reachable()

void router_orport_found_reachable ( void  )

Annotate that we found our ORPort reachable.

Definition at line 218 of file selftest.c.

◆ router_perform_bandwidth_test()

void router_perform_bandwidth_test ( int  num_circs,
time_t  now 

We have enough testing circuits open. Send a bunch of "drop" cells down each of them, to exercise our bandwidth.

Definition at line 275 of file selftest.c.