|
Tor 0.4.9.8
|
Macros for iterating over the elements of a smartlist_t. More...
Go to the source code of this file.
Macros | |
| #define | SMARTLIST_FOREACH_BEGIN(sl, type, var) |
| #define | SMARTLIST_FOREACH_REVERSE_BEGIN(sl, type, var) |
| #define | SMARTLIST_FOREACH_END(var) |
| #define | SMARTLIST_FOREACH(sl, type, var, cmd) |
| #define | SMARTLIST_DEL_CURRENT(sl, var) |
| #define | SMARTLIST_DEL_CURRENT_KEEPORDER(sl, var) |
| #define | SMARTLIST_REPLACE_CURRENT(sl, var, val) |
Macros for iterating over the elements of a smartlist_t.
Definition in file smartlist_foreach.h.
| #define SMARTLIST_DEL_CURRENT | ( | sl, | |
| var ) |
Helper: While in a SMARTLIST_FOREACH loop over the list sl indexed with the variable var, remove the current element in a way that won't confuse the loop.
Definition at line 120 of file smartlist_foreach.h.
Referenced by channel_free_list(), channel_listener_run_cleanup(), channel_run_cleanup(), circuit_free_all(), connection_edge_process_resolved_cell(), consensus_cache_delete_pending(), consensus_cache_filter_list(), dirserv_get_routerdesc_spool(), dirserv_spool_remove_missing_and_guess_size(), entry_guards_load_guards_from_state(), format_recommended_version_list(), handle_get_keys(), hs_pick_hsdir(), microdescs_add_to_cache(), nodelist_subtract(), pt_free_all(), pt_prepare_proxy_list_for_config_read(), register_all_services(), rep_hist_get_predicted_ports(), rep_hist_remove_predicted_ports(), retry_listener_ports(), routers_make_ed_keys_unique(), routerset_parse(), routerset_subtract_nodes(), set_environment_variable_in_smartlist(), sr_handle_received_commits(), storage_dir_clean_tmpfiles(), sweep_bridge_list(), sweep_proxy_list(), sweep_transport_list(), try_finalize_set(), and warn_nonlocal_controller_ports().
| #define SMARTLIST_DEL_CURRENT_KEEPORDER | ( | sl, | |
| var ) |
Helper: While in a SMARTLIST_FOREACH loop over the list sl indexed with the variable var, remove the current element in a way that won't confuse the loop.
Definition at line 130 of file smartlist_foreach.h.
Referenced by dump_desc_fifo_bump_hash(), entry_guards_update_primary(), get_interface_address6_list(), maintain_layer2_guards(), sampled_guards_prune_obsolete_entries(), and trusted_dirs_remove_old_certs().
| #define SMARTLIST_FOREACH | ( | sl, | |
| type, | |||
| var, | |||
| cmd ) |
An alias for SMARTLIST_FOREACH_BEGIN and SMARTLIST_FOREACH_END, using cmd as the loop body. This wrapper is here for convenience with very short loops.
By convention, we do not use this for loops which nest, or for loops over 10 lines or so. Use SMARTLIST_FOREACH_{BEGIN,END} for those.
Definition at line 112 of file smartlist_foreach.h.
Referenced by accounting_parse_options(), add_onion_helper_keyarg(), addr_policy_list_free_(), already_have_cert(), append_cell_stats_by_command(), assert_unconfigured_count_ok(), authority_cert_get_all(), authority_cert_get_by_digests(), authority_cert_get_by_sk_digest(), authority_cert_get_newest_by_id(), authority_cert_parse_from_string(), authority_certs_fetch_missing(), bridge_add_from_config(), bridge_free_(), bridge_line_free_(), bwhist_update_bwhist_state_section(), cert_list_free_(), channel_dumpstats(), channel_listener_dumpstats(), check_family_certs(), choose_good_exit_server_general(), circpad_machines_free(), circuit_build_times_parse_state(), circuit_clear_testing_cell_stats(), circuit_describe_status_for_controller(), circuit_free_(), circuit_list_path_impl(), circuit_unlink_all_from_channel(), clear_bridge_list(), clear_dir_servers(), clear_geoip_db(), clear_transport_list(), client_check_address_changed(), client_likes_consensus(), compute_consensus_method(), compute_consensus_package_lines(), compute_frac_paths_available(), compute_routerstatus_consensus(), config_dump(), config_free_(), config_free_all(), config_mgr_free_(), config_mgr_list_deprecated_vars(), config_mgr_list_vars(), config_register_addressmaps(), conflux_clear_ooo_q(), conflux_mark_all_for_close(), congestion_control_free_(), connection_dir_bridge_routerdesc_failed(), connection_dir_retry_bridges(), connection_edge_process_resolved_cell(), connection_free_all(), connection_free_minimal(), connection_or_clear_identity_map(), connection_or_report_broken_states(), connection_or_update_token_buckets(), consdiff_get_digests(), consensus_join_lines(), consensus_queue_compression_work(), control_cmd_args_free_(), control_cmd_args_wipe(), control_event_conf_changed(), control_event_conn_bandwidth_used(), control_event_descriptors_changed(), control_event_networkstatus_changed_helper(), control_ports_write_to_file(), control_reply_clear(), control_update_global_event_mask(), controller_get_routerdescs(), crypto_digest_smartlist_prefix(), dcfg_free_(), decode_create2_list(), decode_hashed_passwords(), decode_intro_points(), decode_introduction_point(), decode_link_specifiers(), desc_decode_encrypted_v3(), desc_decode_superencrypted_v3(), desc_encode_v3(), dir_conn_clear_spool(), dir_server_free_(), dirauth_options_validate(), dirclient_dump_total_dls(), directories_have_accepted_server_descriptor(), directory_get_consensus_url(), directory_send_command(), dirserv_add_multiple_descriptors(), dirserv_generate_networkstatus_vote_obj(), dirvote_clear_votes(), dirvote_compute_consensuses(), dirvote_create_microdescriptor(), dirvote_fetch_missing_votes(), dirvote_get_vote(), disk_state_parse_commits(), disk_state_parse_srv(), dns_free_all(), dns_reset_correctness_checks(), dump_desc_populate_fifo_from_directory(), dump_routerlist_mem_usage(), encode_client_auth_cred_for_control_port(), encode_intro_point(), encode_protocol_list(), entry_connection_describe_status_for_controller(), entry_guard_encode_for_state(), entry_guard_parse_from_state(), entry_guard_restriction_free_(), entry_guards_update_primary(), extrainfo_dump_to_string(), extrainfo_parse_entry_from_string(), family_key_id_is_expected(), family_key_is_present(), find_all_by_keyword(), find_all_exitpolicy(), find_and_remove_client_auth_creds_file(), find_bridge_by_digest(), find_opt_by_keyword(), format_cell_stats(), format_networkstatus_vote(), format_recommended_version_list(), frac_nodes_with_descriptors(), geoip_get_client_history(), geoip_get_request_history(), geoip_get_transport_history(), geoip_load_file(), get_all_auth_client_lines(), get_bindaddr_for_server_proxy(), get_bindaddr_from_transport_listen_line(), get_configured_bridge_by_routerinfo(), get_glob_paths(), get_inner_encrypted_layer_plaintext(), get_my_declared_family(), get_n_authorities(), get_ns_str_from_sr_values(), get_options_from_transport_options_line(), get_outer_encrypted_layer_plaintext(), get_transport_in_state_by_name(), get_transport_options_for_server_proxy(), get_transport_proxy_ports(), getinfo_helper_config(), getinfo_helper_dir(), getinfo_helper_downloads(), getinfo_helper_entry_guards(), getinfo_helper_events(), getinfo_helper_listeners(), getinfo_helper_networkstatus(), getinfo_helper_policies(), guard_selection_free_(), handle_control_add_onion(), handle_control_authenticate(), handle_control_extendcircuit(), handle_control_mapaddress(), handle_control_onion_client_auth_add(), handle_control_onion_client_auth_view(), handle_control_protocolinfo(), handle_control_resolve(), handle_get_keys(), handle_get_status_vote(), handle_response_fetch_desc(), handle_response_fetch_microdesc(), hs_config_client_authorization(), hs_config_service_all(), hs_desc_decode_plaintext(), hs_desc_encrypted_data_free_contents(), hs_desc_intro_point_free_(), hs_desc_superencrypted_data_free_contents(), hs_descriptor_clear_intro_points(), hs_intropoint_clear(), hs_parse_port_config(), hs_service_add_ephemeral(), initiate_descriptor_downloads(), interface_address6_list_free_(), introduce1_set_encrypted_link_spec(), kvline_encode(), launch_managed_proxy(), lint_message(), list_deprecated_options(), list_family_key_files(), list_family_key_files_impl(), list_getinfo_options(), list_pending_downloads(), list_v3_auth_ids(), load_client_keys(), load_family_id_keys_impl(), log_credential_status(), logs_free_all(), make_consensus_method_list(), managed_proxy_create(), managed_proxy_destroy(), mark_bridge_list(), mark_transport_list(), metrics_parse_ports(), metrics_store_entry_free_(), metrics_store_free_void(), microdesc_cache_clean(), microdesc_check_counts(), microdesc_free_(), microdesc_free_all(), microdesc_parse_fields(), microdesc_reset_outdated_dirservers_list(), microdescs_add_list_to_cache(), microdescs_add_to_cache(), namemap_clear(), networkstatus_check_consensus_signature(), networkstatus_compute_consensus(), networkstatus_format_signatures(), networkstatus_get_detached_signatures(), networkstatus_get_voter_by_id(), networkstatus_get_voter_sig_by_alg(), networkstatus_getinfo_by_purpose(), networkstatus_parse_detached_signatures(), networkstatus_parse_vote_from_string(), networkstatus_reset_warnings(), networkstatus_vote_free_(), node_in_nickname_smartlist(), nodefamily_canonicalize(), nodefamily_format(), nodelist_add_node_and_family(), nodelist_refresh_countries(), nodelist_set_consensus(), nodes_have_common_family_id(), nodes_in_same_family(), normalize_nickname_list(), ns_detached_signatures_free_(), options_clear_cb(), options_init_from_string(), options_init_logs(), options_rollback_listener_transaction(), options_validate_cb(), options_validate_publish_server(), options_validate_server_transport(), parse_addr_policy(), parse_auth_file_content(), parse_authorized_client(), parse_bridge_line(), parse_dir_authority_line(), parse_dir_fallback_line(), parse_http_response(), parse_log_severity_config(), parse_method_line_helper(), parse_or_diff_from_header(), parse_ports(), parse_private_key_from_control_port(), parse_protocol_list(), parse_tcp_proxy_line(), parsed_consensus_request_clear(), policies_parse_exit_policy_from_options(), policy_dump_to_string(), policy_summarize(), port_parse_config(), port_parse_ports_relay(), predicted_ports_free_all(), process_free_(), process_free_all(), process_reset_environment(), protocol_list_supports_protocol(), protocol_list_supports_protocol_or_later(), protover_all_supported(), protover_compute_vote(), protover_free_all(), protover_list_is_invalid(), proxy_prepare_for_restart(), pt_free_all(), pt_get_extra_info_descriptor_string(), pt_kickstart_proxy(), pt_parse_transport_line(), pt_prepare_proxy_list_for_config_read(), pt_stringify_socks_args(), pt_update_bridge_lines(), pubsub_items_free_(), remove_all_entry_guards_for_guard_selection(), rep_hist_format_buffer_stats(), rep_hist_format_exit_stats(), rep_hist_free_all(), rep_hist_get_overload_stats_lines(), rep_hist_load_mtbf_data(), rep_hist_log_link_protocol_counts(), rep_hist_remove_predicted_ports(), rep_hist_reset_buffer_stats(), resolved_cell_parse(), retry_all_listeners(), retry_listener_ports(), router_digest_is_trusted_dir_type(), router_dump_router_to_string(), router_find_exact_exit_enclave(), router_free_all(), router_get_fallback_dirserver_by_digest(), router_get_mutable_consensus_status_by_descriptor_digest(), router_get_trusteddirserver_by_digest(), router_load_extrainfo_from_string(), router_load_routers_from_string(), router_parse_entry_from_string(), router_rebuild_store(), router_reset_descriptor_download_failures(), router_reset_warnings(), router_set_status(), routerinfo_free_(), routerlist_find_elt_(), routerlist_find_my_routerinfo(), routerlist_free_(), routerlist_free_all(), routerlist_remove_old_routers(), routerlist_reset_warnings(), routers_update_all_from_networkstatus(), routerset_equal(), routerset_free_(), routerset_get_all_nodes(), routerset_subtract_nodes(), routerstatus_format_entry(), schedule_active_linked_connections_cb(), service_authorized_client_config_equal(), service_clear_config(), service_desc_clear_previous_hsdirs(), service_descriptor_free_(), service_free_all(), set_family_id_keys(), signed_descs_update_status_from_consensus_networkstatus(), smartlist_ints_eq(), smartlist_strings_eq(), sr_compute_srv(), sr_get_string_for_vote(), state_transport_line_is_valid(), storage_dir_free_(), storage_dir_rescan(), storage_dir_save_chunks_to_file(), tokenize_string(), tor_inet_aton(), tor_mainloop_disconnect_pubsub(), tor_version_is_obsolete(), trusted_dirs_flush_certs_to_disk(), trusteddirserver_get_by_v3_auth_digest(), unlinked_close_all_legs(), unlinked_free(), validate_ports_csv(), and write_short_policy().
| #define SMARTLIST_FOREACH_BEGIN | ( | sl, | |
| type, | |||
| var ) |
Iterate over the items in a smartlist sl, in order. For each item, assign it to a new local variable of type type named var, and execute the statements inside the loop body. Inside the loop, the loop index can be accessed as var_sl_idx and the length of the list can be accessed as var_sl_len.
NOTE: Do not change the length of the list while the loop is in progress, unless you adjust the _sl_len variable correspondingly. See second example below.
Example use:
smartlist_t *list = smartlist_split("A:B:C", ":", 0, 0); SMARTLIST_FOREACH_BEGIN(list, char *, cp) { printf("%d: %s\n", cp_sl_idx, cp); tor_free(cp); } SMARTLIST_FOREACH_END(cp); smartlist_free(list);
Example use (advanced):
SMARTLIST_FOREACH_BEGIN(list, char *, cp) { if (!strcmp(cp, "junk")) { tor_free(cp); SMARTLIST_DEL_CURRENT(list, cp); } } SMARTLIST_FOREACH_END(cp);
Definition at line 78 of file smartlist_foreach.h.
Referenced by add_trusted_dir_to_nodelist_addr_set(), addr_policy_append_reject_addr_list(), addr_policy_append_reject_addr_list_filter(), addressmap_address_should_automap(), authority_certs_fetch_missing(), bridge_resolve_conflicts(), build_service_desc_superencrypted(), bwhist_load_bwhist_state_section(), channel_free_list(), channel_listener_force_xfree(), channel_listener_free_list(), channel_listener_process_incoming(), channel_listener_run_cleanup(), channel_rsa_id_group_set_badness(), channel_run_cleanup(), channel_tls_listener_close_method(), check_and_prune_server_ports(), check_family_certs(), choose_good_exit_server_general(), choose_guard_selection(), circpad_free_all(), circpad_handle_padding_negotiate(), circuit_any_opened_circuits(), circuit_close_all_marked(), circuit_discard_optional_exit_enclaves(), circuit_dump_by_conn(), circuit_enough_testing_circs(), circuit_expire_building(), circuit_expire_old_circuits_clientside(), circuit_expire_old_circuits_serverside(), circuit_expire_waiting_for_better_guard(), circuit_find_to_cannibalize(), circuit_free_(), circuit_free_all(), circuit_get_all_pending_on_channel(), circuit_get_best(), circuit_get_by_global_id(), circuit_log_ancient_one_hop_circuits(), circuit_mark_all_dirty_circs_as_unusable(), circuit_mark_all_unused_circs(), circuit_n_chan_done(), circuit_predict_and_launch_new(), circuit_stream_is_being_handled(), circuit_unlink_all_from_channel(), circuit_upgrade_circuits_from_guard_wait(), circuits_handle_oom(), cleanup_intro_points(), clear_circ_bw_fields(), client_desc_has_arrived(), client_desc_missing_bad_client_auth(), client_dir_fetch_404(), client_likes_consensus(), close_all_socks_conns_waiting_for_desc(), close_directory_connections(), compare_known_tor_addr_to_addr_policy(), compare_known_tor_addr_to_addr_policy_noport(), compare_unknown_tor_addr_to_addr_policy(), compute_consensus_package_lines(), compute_consensus_versions_list(), compute_nth_protocol_set(), compute_publishserverdescriptor(), compute_routerstatus_consensus(), compute_subcredentials(), compute_weighted_bandwidths(), config_check_ok(), config_dump(), config_dup(), config_expand_abbrev(), config_find_deprecation(), config_free_(), config_get_changes(), config_init(), config_mark_lists_fragile(), config_mgr_assert_magic_ok(), config_mgr_find_var(), config_new(), config_validate(), conflux_add_guards_to_exclude_list(), conflux_add_middles_to_exclude_list(), conflux_log_set(), connection_ap_attach_pending(), connection_ap_expire_beginning(), connection_ap_fail_onehop(), connection_ap_handshake_socks_got_resolved_cell(), connection_ap_rescan_and_attach_pending(), connection_control_closed(), connection_count_moribund(), connection_dir_download_cert_failed(), connection_dump_buffer_mem_stats(), connection_edge_process_resolved_cell(), connection_expire_held_open(), connection_half_edges_waiting(), connection_mark_all_noncontrol_connections(), connection_mark_all_noncontrol_listeners(), connection_or_group_set_badness_(), connection_or_report_broken_states(), consdiff_gen_diff(), consdiffmgr_cleanup(), consdiffmgr_consensus_load(), consdiffmgr_diffs_load(), consdiffmgr_ensure_space_for_files(), consdiffmgr_rescan_flavor_(), consdiffmgr_set_cache_flags(), consdiffmgr_validate(), consensus_cache_clear(), consensus_cache_delete_pending(), consensus_cache_filter_list(), consensus_cache_find_all(), consensus_cache_rescan(), consensus_cache_unmap_lazy(), consensus_join_lines(), consensus_queue_compression_work(), control_event_circ_bandwidth_used(), control_event_circuit_cell_stats(), control_event_stream_bandwidth_used(), control_ports_write_to_file(), control_write_reply_lines(), controller_get_routerdescs(), count_acceptable_nodes(), count_pending_general_client_circuits(), count_usable_descriptors(), create_managed_proxy_environment(), dcfg_free_(), decode_auth_type(), decode_create2_list(), decode_intro_points(), decode_pow_params(), desc_decode_superencrypted_v3(), desc_decrypt_encrypted(), describe_intro_point(), digest_list_contains_best_consensus(), digest_list_to_string(), dir_microdesc_download_failed(), dir_routerdesc_download_failed(), dir_split_resource_into_fingerprint_pairs(), dir_split_resource_into_spoolable(), dirauth_options_validate(), dircollator_add_vote(), directory_get_consensus_url(), directory_get_from_all_authorities(), directory_post_to_dirservers(), directory_remove_invalid(), directory_request_is_pending(), dirlist_add_trusted_dir_addresses(), dirserv_compute_performance_thresholds(), dirserv_count_measured_bws(), dirserv_generate_networkstatus_vote_obj(), dirserv_get_routerdesc_spool(), dirserv_set_bridges_running(), dirserv_spool_remove_missing_and_guess_size(), dirserv_test_reachability(), dirvote_add_vote(), dirvote_compute_consensuses(), dirvote_compute_params(), dirvote_fetch_missing_votes(), dirvote_get_intermediate_param_value(), dispatch_new(), dtbl_entry_from_lst(), dump_cell_pool_usage(), dump_desc_fifo_bump_hash(), dump_desc_fifo_cleanup(), dump_desc_populate_fifo_from_directory(), dumpstats(), encode_link_specifiers(), encode_protocol_list(), entry_guard_chan_failed(), entry_guards_all_primary_guards_are_down(), entry_guards_free_all(), entry_guards_load_guards_from_state(), entry_guards_update_confirmed(), entry_guards_update_filtered_sets(), entry_guards_update_guards_in_state(), entry_guards_update_primary(), entry_guards_upgrade_waiting_circuits(), exit_policy_is_general_exit_helper(), extract_shared_random_commits(), fetch_bridge_descriptors(), find_and_remove_client_auth_creds_file(), find_best_diff(), find_desc_intro_point_by_ident(), find_desc_intro_point_by_legacy_id(), find_entry_by_name(), find_single_ipv6_orport(), find_transport_name_by_bridge_addrport(), first_reachable_filtered_entry_guard(), flag_all_conn_wait_desc(), flush_log_messages_from_startup(), flush_pending_log_callbacks(), format_networkstatus_vote(), format_recommended_version_list(), frac_nodes_with_descriptors(), geoip_get_request_history(), geoip_get_transport_history(), get_all_auth_client_lines(), get_all_possible_sybil(), get_bindaddr_for_server_proxy(), get_bridge_dl_status_by_id(), get_configured_bridge_by_addr_port_digest(), get_configured_bridge_by_exact_addr_port_digest(), get_configured_bridge_by_orports_digest(), get_eligible_guards(), get_first_listener_addrport_string(), get_frequent_members(), get_glob_paths(), get_guard_selection_by_name(), get_inner_encrypted_layer_plaintext(), get_interface_address6(), get_interface_address6_list(), get_link_spec_by_type(), get_majority_srv_from_votes(), get_managed_proxy_by_argv_and_type(), get_message_bitarray(), get_net_param_from_list(), get_options_from_transport_options_line(), get_output(), get_sampled_guard_by_bridge_addr(), get_sampled_guard_with_id(), get_sybil_list_by_ip_version(), get_transport_by_bridge_addrport(), get_transport_options_for_server_proxy(), get_transport_proxy_ports(), getinfo_helper_config(), getinfo_helper_dir(), getinfo_helper_entry_guards(), getinfo_helper_events(), getinfo_helper_listeners(), guard_selection_get_err_str_if_dir_info_missing(), handle_control_add_onion(), handle_control_extendcircuit(), handle_control_getconf(), handle_control_getinfo(), handle_control_onion_client_auth_add(), handle_control_onion_client_auth_view(), handle_control_setevents(), handle_control_usefeature(), handle_get_descriptor(), hostname_in_track_host_exits(), hs_client_any_intro_points_usable(), hs_client_launch_v3_desc_fetch(), hs_config_client_authorization(), hs_control_hspost_command(), hs_get_extend_info_from_lspecs(), hs_get_responsible_hsdirs(), hs_metrics_update_by_service(), hs_pick_hsdir(), hs_service_load_all_keys(), hs_service_requires_uptime_circ(), hs_set_conn_addr_port(), init_store(), intro_points_all_timed_out(), kill_conn_list_for_oos(), launch_test_addresses(), leg_find(), lint_message_consistency(), list_bridge_identities(), list_family_key_files_impl(), list_pending_downloads(), list_pending_fpsk_downloads(), list_torrc_options(), load_client_keys(), load_family_id_keys(), load_family_id_keys_impl(), load_policy_from_option(), maintain_layer2_guards(), managed_proxy_has_transport(), mark_all_dirservers_up(), mark_primary_guards_maybe_reachable(), max_in_u16_sl(), metrics_get_output(), metrics_store_find_entry_with_label(), microdesc_cache_clean(), microdesc_cache_rebuild(), microdesc_list_missing_digest256(), microdesc_parse_fields(), microdescs_add_list_to_cache(), microdescs_add_to_cache(), networkstatus_add_detached_signatures(), networkstatus_check_consensus_signature(), networkstatus_compute_consensus(), networkstatus_format_signatures(), networkstatus_get_detached_signatures(), networkstatus_getinfo_by_purpose(), networkstatus_parse_detached_signatures(), networkstatus_parse_vote_from_string(), networkstatus_verify_bw_weights(), networkstatus_vote_free_(), node_get_by_nickname(), node_lookup_declared_family_list(), nodefamily_from_members(), nodelist_add_node_and_family(), nodelist_assert_ok(), nodelist_find_nodes_with_microdesc(), nodelist_free_all(), nodelist_set_consensus(), nodelist_subtract(), normalize_nickname_list(), num_bridges_usable(), num_reachable_filtered_guards(), parse_accept_encoding_header(), parse_addr_policy(), parse_dir_authority_line(), parse_dir_fallback_line(), parse_from_state_set_vals(), parse_log_severity_config(), parse_or_diff_from_header(), pathbias_count_circs_in_states(), periodic_events_connect_all(), periodic_events_disconnect_all(), periodic_events_find(), periodic_events_rescan_by_roles(), periodic_events_reset_all(), pick_oos_victims(), pick_restricted_middle_node(), policies_log_first_redundant_entry(), policies_parse_exit_policy_reject_private(), policy_dump_to_string(), policy_expand_private(), policy_expand_unspec(), policy_is_reject_star(), policy_summarize(), port_count_real_listeners(), port_exists_by_type_addr_port(), port_parse_config(), port_warn_nonlocal_ext_orports(), portconf_get_first_advertised(), process_get_argv(), protocol_list_supports_protocol_or_later(), protover_all_supported(), protover_compute_vote(), proxy_mode(), proxy_needs_restart(), proxy_prepare_for_restart(), pt_configure_remaining_proxies(), pt_get_extra_info_descriptor_string(), pt_kickstart_proxy(), pt_parse_transport_line(), pt_prepare_proxy_list_for_config_read(), pt_stringify_socks_args(), pt_update_bridge_lines(), pubsub_build_adjacency_map(), pubsub_items_clear_bindings(), pubsub_items_install_bindings(), purge_vanguards_lite(), queued_events_flush_all(), reachable_addr_choose_from_ls(), reenable_blocked_connections_cb(), register_all_services(), register_client_proxy(), register_server_proxy(), rep_hist_buffer_stats_write(), rep_hist_format_buffer_stats(), rep_hist_get_predicted_ports(), rep_hist_note_used_port(), rep_hist_remove_predicted_ports(), retry_all_listeners(), retry_all_socks_conn_waiting_for_desc(), retry_listener_ports(), router_add_running_nodes_to_smartlist(), router_addr_is_trusted_dir_type(), router_dump_router_to_string(), router_exit_policy_all_nodes_reject(), router_get_active_listener_port_by_type_af(), router_load_extrainfo_from_string(), router_load_routers_from_string(), router_pick_directory_server_impl(), router_pick_trusteddirserver_impl(), router_rebuild_store(), routerlist_assert_ok(), routerlist_descriptors_added(), routers_make_ed_keys_unique(), routerset_parse(), routerset_refresh_countries(), sampled_guards_prune_obsolete_entries(), sampled_guards_update_consensus_presence(), scale_active_circuits(), select_confirmed_guard_for_circuit(), select_primary_guard_for_circuit(), select_scheduler(), service_desc_hsdirs_changed(), service_is_duplicate_in_list(), set_environment_variable_in_smartlist(), set_intro_point_onion_key(), setup_desc_intro_point(), sr_compute_srv(), sr_handle_received_commits(), storage_dir_clean_tmpfiles(), storage_dir_get_usage(), storage_dir_shrink(), string_is_valid_nonrfc_hostname(), sum_up_cell_stats_by_command(), sweep_bridge_list(), sweep_proxy_list(), sweep_transport_list(), tor_version_is_obsolete(), transport_get_by_name(), transport_is_needed(), trim_rend_pqueue(), trusted_dir_server_get_dirport_exact(), trusted_dirs_remove_old_certs(), try_finalize_set(), unlinked_close_all_legs(), update_consensus_router_descriptor_downloads(), update_intro_circuits(), update_microdescs_from_networkstatus(), upload_descriptor_to_all(), validate_transport_socks_arguments(), validate_unlinked_legs(), warn_about_relative_paths(), warn_nonlocal_client_ports(), and warn_nonlocal_controller_ports().
| #define SMARTLIST_FOREACH_END | ( | var | ) |
Definition at line 99 of file smartlist_foreach.h.
| #define SMARTLIST_FOREACH_REVERSE_BEGIN | ( | sl, | |
| type, | |||
| var ) |
Iterates over the items in smartlist sl in reverse order, similar to SMARTLIST_FOREACH_BEGIN
NOTE: This macro is incompatible with SMARTLIST_DEL_CURRENT.
Definition at line 91 of file smartlist_foreach.h.
Referenced by circpad_add_matching_machines().
| #define SMARTLIST_REPLACE_CURRENT | ( | sl, | |
| var, | |||
| val ) |
Helper: While in a SMARTLIST_FOREACH loop over the list sl indexed with the variable var, replace the current element with val. Does not deallocate the current value of var.
Definition at line 141 of file smartlist_foreach.h.
Referenced by load_policy_from_option().