GNUnet  0.11.x
Macros | Typedefs | Enumerations | Functions
Logging

Macros

#define GNUNET_EXTRA_LOGGING   0
 define GNUNET_EXTRA_LOGGING if using this header outside the GNUnet source tree where gnunet_config.h is unavailable More...
 
#define GNUNET_assert(cond)
 Use this for fatal errors that cannot be handled. More...
 
#define GNUNET_assert_at(cond, f, l)
 Use this for fatal errors that cannot be handled. More...
 
#define GNUNET_assert_from(cond, comp)
 Use this for fatal errors that cannot be handled. More...
 
#define GNUNET_break(cond)
 Use this for internal assertion violations that are not fatal (can be handled) but should not occur. More...
 
#define GNUNET_break_op(cond)
 Use this for assertion violations caused by other peers (i.e. More...
 
#define GNUNET_log_strerror(level, cmd)
 Log an error message at log-level 'level' that indicates a failure of the command 'cmd' with the message given by strerror(errno). More...
 
#define GNUNET_log_from_strerror(level, component, cmd)
 Log an error message at log-level 'level' that indicates a failure of the command 'cmd' with the message given by strerror(errno). More...
 
#define GNUNET_log_strerror_file(level, cmd, filename)
 Log an error message at log-level 'level' that indicates a failure of the command 'cmd' with the message given by strerror(errno). More...
 
#define GNUNET_log_from_strerror_file(level, component, cmd, filename)
 Log an error message at log-level 'level' that indicates a failure of the command 'cmd' with the message given by strerror(errno). More...
 

Typedefs

typedef void(* GNUNET_Logger) (void *cls, enum GNUNET_ErrorType kind, const char *component, const char *date, const char *message)
 User-defined handler for log messages. More...
 

Enumerations

enum  GNUNET_ErrorType {
  GNUNET_ERROR_TYPE_UNSPECIFIED = -1, GNUNET_ERROR_TYPE_NONE = 0, GNUNET_ERROR_TYPE_ERROR = 1, GNUNET_ERROR_TYPE_WARNING = 2,
  GNUNET_ERROR_TYPE_MESSAGE = 4, GNUNET_ERROR_TYPE_INFO = 8, GNUNET_ERROR_TYPE_DEBUG = 16, GNUNET_ERROR_TYPE_INVALID = 32,
  GNUNET_ERROR_TYPE_BULK = 64
}
 Types of errors. More...
 

Functions

int GNUNET_get_log_skip (void)
 Get the number of log calls that are going to be skipped. More...
 
void GNUNET_log_nocheck (enum GNUNET_ErrorType kind, const char *message,...) __attribute__((format(printf
 Main log function. More...
 
void GNUNET_log_from_nocheck (enum GNUNET_ErrorType kind, const char *comp, const char *message,...)
 Log function that specifies an alternative component. More...
 
void GNUNET_log_config_missing (enum GNUNET_ErrorType kind, const char *section, const char *option)
 Log error message about missing configuration option. More...
 
void GNUNET_log_config_invalid (enum GNUNET_ErrorType kind, const char *section, const char *option, const char *required)
 Log error message about invalid configuration option value. More...
 
void GNUNET_abort_ (void) __attribute__((noreturn))
 Abort the process, generate a core dump if possible. More...
 
void GNUNET_log_skip (int n, int check_reset)
 Ignore the next n calls to the log function. More...
 
int GNUNET_log_setup (const char *comp, const char *loglevel, const char *logfile)
 Setup logging. More...
 
void GNUNET_logger_add (GNUNET_Logger logger, void *logger_cls)
 Add a custom logger. More...
 
void GNUNET_logger_remove (GNUNET_Logger logger, void *logger_cls)
 Remove a custom logger. More...
 
const char * GNUNET_sh2s (const struct GNUNET_ShortHashCode *shc)
 Convert a short hash value to a string (for printing debug messages). More...
 
const char * GNUNET_uuid2s (const struct GNUNET_Uuid *uuid)
 Convert a UUID to a string (for printing debug messages). More...
 
const char * GNUNET_h2s (const struct GNUNET_HashCode *hc)
 Convert a hash value to a string (for printing debug messages). More...
 
const char * GNUNET_h2s2 (const struct GNUNET_HashCode *hc)
 Convert a hash value to a string (for printing debug messages). More...
 
const char * GNUNET_h2s_full (const struct GNUNET_HashCode *hc)
 Convert a hash value to a string (for printing debug messages). More...
 
const char * GNUNET_p2s (const struct GNUNET_CRYPTO_EddsaPublicKey *p)
 Convert a public key value to a string (for printing debug messages). More...
 
const char * GNUNET_p2s2 (const struct GNUNET_CRYPTO_EddsaPublicKey *p)
 Convert a public key value to a string (for printing debug messages). More...
 
const char * GNUNET_e2s (const struct GNUNET_CRYPTO_EcdhePublicKey *p)
 Convert a public key value to a string (for printing debug messages). More...
 
const char * GNUNET_e2s2 (const struct GNUNET_CRYPTO_EcdhePublicKey *p)
 Convert a public key value to a string (for printing debug messages). More...
 
const char * GNUNET_i2s (const struct GNUNET_PeerIdentity *pid)
 Convert a peer identity to a string (for printing debug messages). More...
 
const char * GNUNET_i2s2 (const struct GNUNET_PeerIdentity *pid)
 Convert a peer identity to a string (for printing debug messages). More...
 
const char * GNUNET_i2s_full (const struct GNUNET_PeerIdentity *pid)
 Convert a peer identity to a string (for printing debug messages). More...
 
const char * GNUNET_a2s (const struct sockaddr *addr, socklen_t addrlen)
 Convert a "struct sockaddr*" (IPv4 or IPv6 address) to a string (for printing debug messages). More...
 
const char * GNUNET_error_type_to_string (enum GNUNET_ErrorType kind)
 Convert error type to string. More...
 

Detailed Description

See also
Documentation

Macro Definition Documentation

◆ GNUNET_EXTRA_LOGGING

#define GNUNET_EXTRA_LOGGING   0

define GNUNET_EXTRA_LOGGING if using this header outside the GNUnet source tree where gnunet_config.h is unavailable

Definition at line 133 of file gnunet_common.h.

Referenced by encapsulate_for_dv(), handle_dv_box(), and handle_dv_learn().

◆ GNUNET_assert

#define GNUNET_assert (   cond)
Value:
do \
{ \
if (! (cond)) \
{ \
GNUNET_log (GNUNET_ERROR_TYPE_ERROR, \
_ ("Assertion failed at %s:%d. Aborting.\n"), \
__FILE__, \
__LINE__); \
GNUNET_abort_ (); \
} \
} while (0)
#define _(String)
GNU gettext support macro.
Definition: platform.h:180

Use this for fatal errors that cannot be handled.

Definition at line 837 of file gnunet_common.h.

Referenced by __attribute__(), _GSS_operation_destroy(), accept_client(), accept_connection(), activate_fs_download(), adapt_parallelism(), add_attestation_cont(), add_attestation_ref_cont(), add_attribute_cont(), add_entry(), add_file(), add_from_hello(), add_host_to_known_hosts(), add_services(), add_to_keyword_counter(), add_to_lru(), add_to_meta_counter(), add_to_tc(), add_unixpath(), add_valid_address(), add_without_sets(), addr_info_cb(), address_decrement_active(), address_to_regex(), adjust_running_peers(), advance(), advance_generation(), advertise_dns_exit(), aes_128_cbc_decrypt(), aes_128_cbc_encrypt(), allocate_v4_address(), allocate_v6_address(), announce_regex(), arrange_peers(), assign_timeslot(), associate_shared_service(), ats_request_address_change(), attach_path(), attempt_connect_task(), automaton_create_proofs(), backtalker_monotime_cb(), backtalker_timeout_cb(), barrier_destroy_iterator(), bind_abstime(), bind_loose_channel(), bind_nbotime(), bind_u16(), bind_u32(), bind_u64(), block_align(), block_create(), block_proc(), boot_queue(), c2i(), cache_clear_iterator(), cache_lookup(), cache_transport_peer_connect_notify(), cadet_mq_cancel_impl(), cadet_mq_destroy_impl(), cadet_mq_send_impl(), call_completion_task(), call_continuation(), callback_download(), cancel_get(), cancel_pending_req_rep(), cancel_request(), cb_intersection_element_removed(), change_peer_respect(), change_state(), channel_destroy(), channel_destroy_iterator(), channel_ended(), channel_incoming(), channel_open_sent_cb(), check_access(), check_communicator_backchannel(), check_match(), check_n_peers_ready(), check_peer_info_ready(), check_priority(), check_readiness(), check_zone_namestore_next(), child_death_task(), churn_cb(), clean_channel(), clean_node(), clean_request(), cleanup(), cleanup_ax(), cleanup_expired_records(), cleanup_iterator(), cleanup_map(), cleanup_mctx(), cleanup_occ(), cleanup_rocc(), cleanup_tslots(), cleanup_validation_entry(), clear_from_s5r_rbuf(), clear_msg(), client_delete_session(), client_disconnect_cb(), client_disconnect_it(), client_release_ports(), client_reschedule_session_timeout(), client_response_handler(), client_run(), client_schedule(), client_send_cb(), client_session_timeout(), client_wake_up(), collector(), comm_disconnect_cb(), commit_set(), compose_address_iterate_response_message(), compute_disk_offset(), compute_global_id(), compute_lagrange_coefficient(), compute_policy(), compute_probabilities(), compute_rand_delay(), compute_scalar_product(), compute_service_response(), compute_square_sum(), compute_square_sum_mpi_elements(), configuration_receiver(), connect_cb(), connect_complete(), connect_fail_continuation(), connect_handler(), connect_notify(), connect_peer(), connect_probe_continuation(), connect_success_continuation(), connection_client_cancel_impl(), connection_client_send_impl(), connection_create(), connection_ready(), connection_ready_cb(), consider_path_cb(), consider_ss_ack(), context_state_callback(), continue_store_activity(), continue_with_gns2dns(), controller_cb(), cookie_identity_interpretation(), copy_argv(), core_connects(), core_env_sent_cb(), core_init(), core_mq_cancel_impl(), core_mq_destroy_impl(), core_mq_send_impl(), core_send_connect_info(), core_startup_cb(), crc32(), create_channel(), create_channel_to_destination(), create_download_context(), create_download_request(), create_hostkeys(), create_keys(), create_peer_ctx(), create_peers(), create_response(), create_session(), create_set_copy_for_task(), cummulative_ack(), curl_download_cb(), curl_task_download(), CustomPeerMap_clear(), CustomPeerMap_get_index_pointer(), CustomPeerMap_put(), CustomPeerMap_remove_peer(), CustomPeerMap_remove_peer_by_index(), CustomPeerMap_size(), daemon_started(), data_sent_cb(), database_setup(), decide_capacity(), decode_and_send(), decode_private_ecdsa_key(), decrementBit(), decrypt_and_check_tc(), decrypt_box(), decrypt_cb(), decrypt_conclude(), decrypt_connect_complete(), decrypt_disconnect_adapter(), decrypt_new_element(), default_reply_handle(), defer(), delayed_put(), delayed_restart_task(), delete_attestation_ref_cont(), delete_value(), dequeue(), derive_ublock_encryption_key(), deserialize_download(), deserialize_publish_file(), destroy_ack_cummulator(), destroy_active_client_request(), destroy_ai(), destroy_channel(), destroy_cli_ctx(), destroy_hosts(), destroy_it(), destroy_key_to_element_iter(), destroy_peer(), destroy_pooled_connection(), destroy_route(), destroy_sub(), destroy_t_connection(), destroy_tunnel(), dfa_minimize(), dfa_remove_dead_states(), dh_key_derive_eph_pid(), dh_key_derive_eph_pub(), dht_connect_cb(), dht_connected(), dht_da(), dht_disconnect(), dht_test_run(), diff_insert(), dir_init(), directory_scan_cb(), discard_oldest_mc(), disconnect_and_free_peer_entry(), disconnect_and_schedule_reconnect(), disconnect_cb(), disconnect_neighbour(), disconnect_notify(), dns_pre_request_handler(), do_accept(), do_call(), do_collect_stats(), do_dht_put(), do_directory_scan(), do_disconnect(), do_encrypt(), do_get(), do_pad(), do_reject(), do_rekey(), do_resume(), do_s5r_read(), do_send(), do_shutdown(), do_suspend(), do_transmit(), do_write(), download_fs_connect_complete_cb(), ds_put_cont(), dv_decrypt(), dv_encrypt(), dv_setup_key_state_from_km(), eat_tld(), encode_cont(), encrypt_fair(), enforce_del_address(), ensure_elgamal_initialized(), env_delete_notify(), estimate_latency(), evaluate_connection(), event_cb(), execute_add(), execute_remove(), execute_select(), expire_channel(), expire_destination(), expire_oldest_entry(), expire_records_continuation(), extend_path(), extract_abs_time(), extract_abs_time_nbo(), extract_box_cb(), extract_fixed_blob(), extract_handles(), extract_pk(), extract_uint16(), extract_uint32(), extract_uint64(), extract_varsize_blob(), fail_resolution(), file_hash_task(), filter_all(), find_content(), find_empty_session_slot(), find_opc(), find_string(), find_trees(), find_validation_entry(), finish_client_drop(), finish_reserve(), finish_step(), finish_task(), flush_respect(), forward_dv_box(), forward_dv_learn(), forward_overlay_connect(), fragment_message(), free_addr_it(), free_address(), free_backtalker(), free_channel_state(), free_connect_info(), free_destination_entry(), free_dv_route(), free_ego(), free_incoming_request(), free_iterator(), free_matching_requests(), free_neighbour(), free_peer(), free_pending_acknowledgement(), free_pending_message(), free_preference(), free_queue(), free_reassembly_context(), free_result(), free_service(), free_service_record(), free_validation_state(), free_virtual_link(), full_recursive_download(), GAS_addresses_add(), GAS_proportional_address_add(), GAS_proportional_address_delete(), GAS_proportional_bulk_start(), GAS_reservations_set_bandwidth(), GCC_create_inbound(), GCC_destroy(), GCC_transmit(), GCCH_bind(), GCCH_channel_incoming_new(), GCCH_channel_local_destroy(), GCCH_handle_channel_plaintext_data(), GCCH_handle_local_ack(), GCCH_handle_local_data(), GCCH_handle_remote_destroy(), GCCH_tunnel_up(), GCH_init(), GCO_shutdown(), GCP_add_connection(), GCP_attach_path(), GCP_detach_path(), GCP_drop_tunnel(), GCP_get(), GCP_get_desirability_of_path(), GCP_path_entry_add(), GCP_path_entry_remove(), GCP_remove_connection(), GCP_send(), GCP_set_mq(), GCPP_add_connection(), GCPP_del_connection(), GCPP_get_connection(), GCPP_get_path_from_route(), GCPP_get_peer_at_offset(), GCPP_release(), GCPP_try_path_from_dht(), GCPP_update_score(), GCT_add_channel(), GCT_create_tunnel(), GCT_destroy_tunnel_now(), GCT_handle_kx(), GCT_handle_kx_auth(), GCT_remove_channel(), GDS_am_closest_peer(), GDS_NEIGHBOURS_done(), GDS_NEIGHBOURS_handle_get(), GDS_NEIGHBOURS_handle_put(), GDS_ROUTING_done(), gen_topo_2dtorus(), gen_topo_random(), gen_topo_scale_free(), generate_presecret_polynomial(), get_active_address_it(), get_app(), get_cadet(), get_channel(), get_channel_key_from_ips(), get_channel_weight(), get_destination_key_from_ip(), get_existing_record(), get_file_handle(), get_hello(), get_ibf_key(), get_idx_of_pid(), get_iter(), get_my_cnf_path(), get_next_free_ctn(), get_peer_ctx(), get_ready_connection(), get_records_and_call_iterator(), get_server_addresses(), get_target_peers(), get_url_benchmark_data(), getopt_set_keywords(), GNS_resolver_lookup_cancel(), GNUNET_ABD_delegate_from_string(), GNUNET_ABD_delegates_get_size(), GNUNET_ABD_delegation_chain_get_size(), GNUNET_ABD_delegation_set_get_size(), GNUNET_ABD_disconnect(), GNUNET_ABE_cpabe_create_key(), GNUNET_ABE_cpabe_create_master_key(), GNUNET_asprintf(), GNUNET_ATS_address_del_session(), GNUNET_ATS_connectivity_suggest_cancel(), GNUNET_ATS_performance_change_preference(), GNUNET_ATS_performance_give_feedback(), GNUNET_BIO_read(), GNUNET_BIO_write(), GNUNET_BLOCK_group_merge(), GNUNET_buffer_prealloc(), GNUNET_buffer_write_vfstr(), GNUNET_CADET_channel_create(), GNUNET_CADET_close_port(), GNUNET_CADET_open_port(), GNUNET_CADET_TEST_cleanup(), GNUNET_CONFIGURATION_deserialize(), GNUNET_CONFIGURATION_iterate_value_filenames(), GNUNET_CONFIGURATION_serialize(), GNUNET_CONNECTION_acivate_proxied(), GNUNET_CONNECTION_create_from_connect(), GNUNET_CONNECTION_create_from_connect_to_unixpath(), GNUNET_CONNECTION_destroy(), GNUNET_CONNECTION_notify_transmit_ready(), GNUNET_CONNECTION_notify_transmit_ready_cancel(), GNUNET_CONNECTION_receive(), GNUNET_CONNECTION_receive_cancel(), GNUNET_CONSENSUS_conclude(), GNUNET_CONTAINER_bloomfilter_load(), GNUNET_CONTAINER_heap_insert(), GNUNET_CONTAINER_heap_remove_node(), GNUNET_CONTAINER_heap_remove_root(), GNUNET_CONTAINER_meta_data_serialize(), GNUNET_CONTAINER_multihashmap32_create(), GNUNET_CONTAINER_multihashmap32_get_multiple(), GNUNET_CONTAINER_multihashmap32_iterate(), GNUNET_CONTAINER_multihashmap32_iterator_next(), GNUNET_CONTAINER_multihashmap_create(), GNUNET_CONTAINER_multihashmap_destroy(), GNUNET_CONTAINER_multihashmap_get_multiple(), GNUNET_CONTAINER_multihashmap_iterate(), GNUNET_CONTAINER_multihashmap_iterator_next(), GNUNET_CONTAINER_multipeermap_create(), GNUNET_CONTAINER_multipeermap_destroy(), GNUNET_CONTAINER_multipeermap_get_multiple(), GNUNET_CONTAINER_multipeermap_iterate(), GNUNET_CONTAINER_multipeermap_iterator_next(), GNUNET_CONTAINER_multishortmap_create(), GNUNET_CONTAINER_multishortmap_destroy(), GNUNET_CONTAINER_multishortmap_get_multiple(), GNUNET_CONTAINER_multishortmap_iterate(), GNUNET_CONTAINER_multishortmap_iterator_next(), GNUNET_CONTAINER_multiuuidmap_create(), GNUNET_CONTAINER_multiuuidmap_destroy(), GNUNET_CONTAINER_multiuuidmap_get_multiple(), GNUNET_CONTAINER_multiuuidmap_iterate(), GNUNET_CONTAINER_multiuuidmap_iterator_next(), GNUNET_CONVERSATION_call_resume(), GNUNET_CONVERSATION_call_suspend(), GNUNET_CONVERSATION_caller_pick_up(), GNUNET_CONVERSATION_caller_resume(), GNUNET_CONVERSATION_caller_suspend(), GNUNET_copy_message(), GNUNET_CORE_connect(), GNUNET_CORE_monitor_start(), GNUNET_CRYPTO_cpabe_create_key(), GNUNET_CRYPTO_cpabe_create_master_key(), GNUNET_CRYPTO_ecc_bin_to_point(), GNUNET_CRYPTO_ecc_dexp(), GNUNET_CRYPTO_ecc_dexp_mpi(), GNUNET_CRYPTO_ecc_dlog(), GNUNET_CRYPTO_ecc_dlog_prepare(), GNUNET_CRYPTO_ecc_point_to_bin(), GNUNET_CRYPTO_ecc_random_mod_n(), GNUNET_CRYPTO_ecc_rnd(), GNUNET_CRYPTO_ecdsa_key_create_from_file(), GNUNET_CRYPTO_ecdsa_private_key_derive(), GNUNET_CRYPTO_ecdsa_public_key_derive(), GNUNET_CRYPTO_eddsa_key_create_from_file(), GNUNET_CRYPTO_hash_context_finish(), GNUNET_CRYPTO_hash_context_start(), GNUNET_CRYPTO_hash_file(), GNUNET_CRYPTO_hash_get_bit(), GNUNET_CRYPTO_hash_to_aes_key(), GNUNET_CRYPTO_hash_to_enc(), GNUNET_CRYPTO_hmac_raw(), GNUNET_CRYPTO_kdf_mod_mpi(), GNUNET_CRYPTO_mpi_print_unsigned(), GNUNET_CRYPTO_mpi_scan_unsigned(), GNUNET_CRYPTO_paillier_create(), GNUNET_CRYPTO_paillier_decrypt(), GNUNET_CRYPTO_paillier_encrypt(), GNUNET_CRYPTO_paillier_encrypt1(), GNUNET_CRYPTO_paillier_hom_add(), GNUNET_CRYPTO_paillier_hom_get_remaining(), GNUNET_CRYPTO_random_block(), GNUNET_CRYPTO_random_permute(), GNUNET_CRYPTO_random_u32(), GNUNET_CRYPTO_random_u64(), GNUNET_CRYPTO_rsa_blind(), GNUNET_CRYPTO_rsa_private_key_create(), GNUNET_CRYPTO_rsa_private_key_dup(), GNUNET_CRYPTO_rsa_private_key_encode(), GNUNET_CRYPTO_rsa_public_key_dup(), GNUNET_CRYPTO_rsa_public_key_encode(), GNUNET_CRYPTO_rsa_sign_blinded(), GNUNET_CRYPTO_rsa_signature_dup(), GNUNET_CRYPTO_rsa_signature_encode(), GNUNET_CRYPTO_rsa_unblind(), GNUNET_CRYPTO_symmetric_decrypt(), GNUNET_CRYPTO_symmetric_encrypt(), GNUNET_CURL_fini(), GNUNET_CURL_get_select_info(), GNUNET_CURL_job_add(), GNUNET_CURL_job_add2(), GNUNET_CURL_job_add_raw(), GNUNET_CURL_perform2(), GNUNET_DATACACHE_put(), GNUNET_DATASTORE_disconnect(), GNUNET_DATASTORE_get_for_replication(), GNUNET_DATASTORE_get_key(), GNUNET_DATASTORE_get_zero_anonymity(), GNUNET_DEFRAGMENT_context_destroy(), GNUNET_DHT_disconnect(), GNUNET_DHT_get_stop(), GNUNET_DISK_directory_scan(), GNUNET_DISK_file_map(), GNUNET_DISK_file_size(), GNUNET_DISK_fn_read(), GNUNET_DISK_fn_write(), GNUNET_DNS_request_answer(), GNUNET_DNS_request_drop(), GNUNET_DNS_request_forward(), GNUNET_FRAGMENT_context_create(), GNUNET_FRAGMENT_context_transmission_done(), GNUNET_FRAGMENT_process_ack(), GNUNET_FS_add_to_index(), GNUNET_FS_directory_builder_add(), GNUNET_FS_directory_builder_finish(), GNUNET_FS_directory_scan_get_result(), GNUNET_FS_download_resume(), GNUNET_FS_download_signal_suspend_(), GNUNET_FS_download_start_downloading_(), GNUNET_FS_download_start_task_(), GNUNET_FS_download_stop(), GNUNET_FS_download_sync_(), GNUNET_FS_file_information_sync_(), GNUNET_FS_probe(), GNUNET_FS_probe_stop(), GNUNET_FS_publish_ksk(), GNUNET_FS_publish_start(), GNUNET_FS_publish_ublock_(), GNUNET_FS_search_continue(), GNUNET_FS_search_probe_progress_(), GNUNET_FS_search_signal_suspend_(), GNUNET_FS_search_start_searching_(), GNUNET_FS_search_stop(), GNUNET_FS_search_sync_(), GNUNET_FS_tree_calculate_block_size(), GNUNET_FS_tree_compute_iblock_size(), GNUNET_FS_tree_encoder_finish(), GNUNET_FS_tree_encoder_next(), GNUNET_FS_uri_chk_get_file_size(), GNUNET_FS_uri_ksk_add_keyword(), GNUNET_FS_uri_ksk_remove_keyword(), GNUNET_FS_uri_loc_create(), GNUNET_FS_uri_loc_get_expiration(), GNUNET_FS_uri_test_equal(), GNUNET_FS_uri_test_ksk(), GNUNET_GETOPT_run(), GNUNET_GNS_disconnect(), GNUNET_HELLO_create(), GNUNET_HELLO_iterate_new_addresses(), GNUNET_HELLO_sign_address(), GNUNET_HELPER_destroy(), GNUNET_HELPER_kill(), GNUNET_HOSTLIST_client_start(), GNUNET_IDENTITY_disconnect(), GNUNET_IDENTITY_ego_lookup(), GNUNET_IDENTITY_ego_lookup_by_suffix(), GNUNET_IDENTITY_get(), GNUNET_IDENTITY_set(), GNUNET_JSON_from_gnsrecord(), GNUNET_JSON_from_time_abs(), GNUNET_JSON_from_time_rel(), GNUNET_log_setup(), GNUNET_logger_remove(), GNUNET_MQ_assoc_add(), GNUNET_MQ_destroy(), GNUNET_MQ_discard(), GNUNET_MQ_env_copy(), GNUNET_MQ_extract_nested_mh_(), GNUNET_MQ_impl_current(), GNUNET_MQ_impl_send_continue(), GNUNET_MQ_impl_send_in_flight(), GNUNET_MQ_notify_sent(), GNUNET_MQ_send(), GNUNET_MQ_send_cancel(), GNUNET_MST_from_buffer(), GNUNET_NAMECACHE_block_cache(), GNUNET_NAMESTORE_records_store(), GNUNET_NETWORK_fdset_handle_set(), GNUNET_NETWORK_fdset_set_native(), GNUNET_NETWORK_test_port_free(), GNUNET_NSE_connect(), GNUNET_OS_command_stop(), GNUNET_OS_init(), GNUNET_PEER_change_rc(), GNUNET_PEER_decrement_rcs(), GNUNET_PEER_intern(), GNUNET_PEER_resolve(), GNUNET_PEER_resolve2(), GNUNET_PEER_search(), GNUNET_PEERINFO_add_peer(), GNUNET_PEERSTORE_watch(), GNUNET_PEERSTORE_watch_cancel(), GNUNET_PQ_exec_prepared(), GNUNET_PQ_run_sql(), GNUNET_RECLAIM_disconnect(), GNUNET_RESOLVER_connect(), GNUNET_RESOLVER_disconnect(), GNUNET_RESOLVER_hostname_get(), GNUNET_RESOLVER_request_cancel(), GNUNET_REVOCATION_sign_revocation(), GNUNET_RPS_request_cancel(), GNUNET_RPS_request_single_info_cancel(), GNUNET_RPS_sub_start(), GNUNET_RPS_view_request_cancel(), GNUNET_SCHEDULER_add_at_with_priority(), GNUNET_SCHEDULER_add_file_with_priority(), GNUNET_SCHEDULER_add_net_with_priority(), GNUNET_SCHEDULER_add_now_with_lifeness(), GNUNET_SCHEDULER_add_select(), GNUNET_SCHEDULER_add_shutdown(), GNUNET_SCHEDULER_add_with_reason_and_priority(), GNUNET_SCHEDULER_begin_async_scope(), GNUNET_SCHEDULER_cancel(), GNUNET_SCHEDULER_do_work(), GNUNET_SCHEDULER_driver_done(), GNUNET_SCHEDULER_driver_init(), GNUNET_SCHEDULER_get_load(), GNUNET_SCHEDULER_get_task_context(), GNUNET_SECRETSHARING_decrypt(), GNUNET_SECRETSHARING_encrypt(), GNUNET_SECRETSHARING_plaintext_generate_i(), GNUNET_SERVER_client_drop(), GNUNET_SERVER_client_get_user_context_(), GNUNET_SERVER_connect_socket(), GNUNET_SERVER_mst_receive(), GNUNET_SERVER_receive_done(), GNUNET_SERVICE_client_continue(), GNUNET_SERVICE_client_drop(), GNUNET_SET_accept(), GNUNET_SET_add_element(), GNUNET_SET_commit(), GNUNET_SET_destroy(), GNUNET_SET_iterate(), GNUNET_snprintf(), GNUNET_SPEEDUP_start_(), GNUNET_SQ_bind(), GNUNET_SQ_extract_result(), GNUNET_STATISTICS_destroy(), GNUNET_STATISTICS_get(), GNUNET_STATISTICS_set(), GNUNET_STATISTICS_update(), GNUNET_STRINGS_buffer_fill(), GNUNET_STRINGS_data_to_string(), GNUNET_strlcpy(), GNUNET_TESTBED_barrier_init_(), GNUNET_TESTBED_barrier_remove_(), GNUNET_TESTBED_barrier_wait(), GNUNET_TESTBED_compress_config_(), GNUNET_TESTBED_controller_connect(), GNUNET_TESTBED_controller_disconnect(), GNUNET_TESTBED_controller_link(), GNUNET_TESTBED_controller_start(), GNUNET_TESTBED_create_helper_init_msg_(), GNUNET_TESTBED_extract_config_(), GNUNET_TESTBED_get_statistics(), GNUNET_TESTBED_host_create_with_id(), GNUNET_TESTBED_host_destroy(), GNUNET_TESTBED_hosts_load_from_file(), GNUNET_TESTBED_hosts_load_from_loadleveler(), GNUNET_TESTBED_insert_opc_(), GNUNET_TESTBED_LOGGER_flush(), GNUNET_TESTBED_operation_activate_(), GNUNET_TESTBED_operation_begin_wait_(), GNUNET_TESTBED_operation_inactivate_(), GNUNET_TESTBED_operation_queue_destroy_(), GNUNET_TESTBED_operation_queue_insert2_(), GNUNET_TESTBED_operation_release_(), GNUNET_TESTBED_overlay_configure_topology(), GNUNET_TESTBED_overlay_configure_topology_va(), GNUNET_TESTBED_overlay_connect(), GNUNET_TESTBED_peer_get_information(), GNUNET_TESTBED_peer_manage_service(), GNUNET_TESTBED_queue_message_(), GNUNET_TESTBED_register_host(), GNUNET_TESTBED_remove_opc_(), GNUNET_TESTBED_run(), GNUNET_TESTBED_SD_add_data_(), GNUNET_TESTBED_SD_init_(), GNUNET_TESTBED_test_run(), GNUNET_TESTBED_topology_get_(), GNUNET_TESTBED_underlay_construct_(), GNUNET_TESTBED_underlaylinkmodel_create(), GNUNET_TESTING_peer_configure(), GNUNET_TESTING_peer_kill(), GNUNET_TESTING_peer_start(), GNUNET_TESTING_peer_stop_async_cancel(), GNUNET_TESTING_reserve_port(), GNUNET_TESTING_system_create_with_portrange(), GNUNET_TRANSPORT_application_suggest(), GNUNET_TRANSPORT_application_suggest_cancel(), GNUNET_TRANSPORT_communicator_notify(), GNUNET_TRANSPORT_core_disconnect(), GNUNET_TRANSPORT_TESTING_restart_peer(), GNUNET_TRANSPORT_TESTING_start_peer(), GNUNET_TUN_calculate_icmp_checksum(), GNUNET_TUN_calculate_tcp4_checksum(), GNUNET_TUN_calculate_tcp6_checksum(), GNUNET_TUN_calculate_udp4_checksum(), GNUNET_TUN_calculate_udp6_checksum(), GNUNET_TUN_initialize_ipv4_header(), GNUNET_TUN_initialize_ipv6_header(), gnunet_uri(), GNUNET_VPN_disconnect(), GNUNET_xmalloc_(), GNUNET_xmemdup_(), GNUNET_xrealloc_(), grow(), GSC_bind(), GSC_CLIENTS_deliver_message(), GSC_CLIENTS_notify_client_about_neighbour(), GSC_CLIENTS_reject_request(), GSC_CLIENTS_solicit_request(), GSC_drop_loose_channel(), GSC_handle_remote_channel_destroy(), GSC_KX_encrypt_and_transmit(), GSC_SESSIONS_add_to_typemap(), GSC_SESSIONS_create(), GSC_SESSIONS_dequeue_request(), GSC_SESSIONS_end(), GSF_cadet_query_cancel(), GSF_cadet_start_server(), GSF_cadet_stop_server(), GSF_connected_peer_get_identity2_(), GSF_connected_peer_get_identity_(), GSF_dht_lookup_(), GSF_local_lookup_(), GSF_peer_disconnect_handler(), GSF_pending_request_cancel_(), GSF_pending_request_create_(), GSF_plan_add_(), GSF_plan_done(), GSF_plan_notify_peer_disconnect_(), GSF_plan_notify_request_done_(), GSF_push_done_(), GST_ats_add_address(), GST_ats_add_inbound_address(), GST_ats_del_session(), GST_ats_expire_address(), GST_ats_new_session(), GST_barriers_destroy(), GST_blacklist_test_allowed(), GST_cache_clear(), GST_clear_fopcq(), GST_connection_pool_destroy(), GST_connection_pool_get_handle(), GST_connection_pool_get_handle_done(), GST_connection_pool_init(), GST_free_lcf(), GST_hello_modify_addresses(), GST_neighbour_get_connection(), GST_neighbour_get_connection_cancel(), GST_neighbour_release_connection(), GST_neighbours_handle_session_syn(), GST_neighbours_handle_session_syn_ack(), GST_neighbours_session_terminated(), GST_neighbours_switch_to_address(), GST_process_next_focc(), GST_validation_handle_hello(), GST_validation_handle_ping(), GST_validation_handle_pong(), handle_add_queue_message(), handle_advertisement(), handle_arm_list_result(), handle_attestation_result(), handle_attribute_result(), handle_barrier_cancel(), handle_barrier_init(), handle_barrier_status(), handle_channel_create(), handle_channel_created(), handle_channel_destroy(), handle_client_accept(), handle_client_blacklist_reply(), handle_client_call_message(), handle_client_copy_lazy_connect(), handle_client_index_start(), handle_client_init(), handle_client_insert(), handle_client_join(), handle_client_monitor_plugins(), handle_client_redirect_to_ip(), handle_client_redirect_to_service(), handle_client_send(), handle_client_send_request(), handle_client_stop_sub(), handle_client_stream_cancel(), handle_client_stream_request(), handle_client_view_cancel(), handle_client_view_request(), handle_conclude_done(), handle_connect(), handle_connection_create(), handle_consume_ticket_result(), handle_core_connect(), handle_core_disconnect(), handle_decrypted(), handle_del_address(), handle_disconnect(), handle_dv_box(), handle_dv_learn(), handle_ephemeral_key(), handle_event(), handle_external_ip(), handle_find_peer(), handle_fragment_box(), handle_get(), handle_gns_resolution_result(), handle_hello(), handle_icmp_back(), handle_icmp_remote(), handle_identity_update(), handle_inbound_channel(), handle_incoming_msg(), handle_intermediate(), handle_intersection_p2p_done(), handle_link_controllers(), handle_link_controllers_result(), handle_list(), handle_lookup_result(), handle_matching_ack(), handle_monitor_next(), handle_mq_error(), handle_namecache_block_response(), handle_op_fail_event(), handle_opsuccess(), handle_overlay_connect(), handle_p2p_estimate(), handle_p2p_get(), handle_p2p_put(), handle_p2p_reply(), handle_peer_conevent(), handle_peer_config(), handle_peer_create_success(), handle_peer_event(), handle_peer_reconfigure(), handle_phone_ring(), handle_plaintext_channel_open(), handle_pong(), handle_port_close(), handle_record_result(), handle_reference_result(), handle_register(), handle_release_reserve(), handle_result(), handle_revoke_ticket_result(), handle_secret_ready(), handle_send_message_ack(), handle_send_transmit_continuation(), handle_set(), handle_slave_get_config(), handle_statistics_value(), handle_tcp_data(), handle_tcp_nat_probe(), handle_udp_back(), handle_union_p2p_ibf(), handle_union_p2p_offer(), handle_union_p2p_strata_estimator(), handle_validation_challenge(), handle_validation_response(), handle_view_update(), handle_watch(), handle_zone_to_name_it(), handle_zone_to_name_response(), handler_connect(), handler_disconnect(), hash_for_index_cb(), hash_redirect_info(), heap_plugin_del(), heap_plugin_get_key(), heap_plugin_get_replication(), heap_plugin_get_zero_anonymity(), hello_callback(), helper_mst(), host_habitable_cb(), host_processor(), hostkeys_load(), hr_completion(), http_client_plugin_get_session(), http_client_plugin_send(), http_common_get_network_for_address(), http_common_plugin_address_to_string(), ibf_create(), ibf_decode(), ibf_insert(), ibf_read_slice(), ibf_remove(), ibf_subtract(), ibf_write_slice(), icmp_from_helper(), identity_zone_cb(), idx_of(), iface_proc(), inbound_bw_tracker_update(), inbound_end(), incoming_channel(), incrementBit(), indicate_sending_intention(), info_cb(), init_aes(), init_crypto_constants(), init_fd_info(), init_key_to_element_iterator(), initialize_key_to_element(), inject_rekey(), insert_decrypt_element(), insert_hostlist(), insert_node(), insert_rcop(), insert_round1_element(), insert_round2_element(), intersection_op_cancel(), intersection_remove(), iopen(), is_bandwidth_available_in_network(), is_element_of_generation(), iter_finished(), iter_testbed_path(), iterate_zones(), iterateBits(), iterator(), iterator_bf_reduce(), kce_destroy(), kce_generate(), keygen_reveal_get_enc_preshare(), keygen_reveal_get_exp_coeff(), keygen_reveal_get_exp_preshare(), keygen_round2_conclude(), keygen_round2_new_element(), keygen_session_destroy(), kill_slave(), lcf_forwarded_operation_timeout(), lcf_proc_cc(), learn_dv_path(), LEGACY_SERVICE_get_server_addresses(), libgnunet_plugin_datacache_heap_done(), LIBGNUNET_PLUGIN_TRANSPORT_INIT(), libgnunet_plugin_transport_tcp_init(), libgnunet_plugin_transport_unix_done(), list_ego(), listen_cb(), listen_connect(), load_plugin(), lookup_diff(), lookup_it(), lookup_nick_it(), lookup_rfn(), lookup_set(), lower_rung(), main(), main_init(), main_run(), maint_child_death(), make_dev_zero(), make_link(), make_up_icmp_service_payload(), mal_cb(), mal_pre(), manage_first_hop_mq(), manage_service_cb(), map_remove_iterator(), mark_connection_unready(), master_task(), match_ipv4(), match_ipv6(), merge_ops(), merge_with_nick_records(), mhd_log_callback(), migrate_and_drop_keywords(), migrate_and_drop_metadata(), modify_address(), modify_record(), monitor_iterate_cb(), monitor_iteration_next(), monitor_notify_disconnect(), move_attr_finished(), move_to_pending(), mpi_to_sexp(), mpi_to_str(), mq_cancel(), mq_cancel_impl(), mq_destroy_impl(), mq_send(), mq_send_impl(), multicast_pong(), my_conv_fixed_size(), my_conv_rsa_public_key(), my_conv_rsa_signature(), my_conv_string(), my_conv_uint16(), my_conv_uint32(), my_conv_uint64(), mylog(), mysql_plugin_estimate_size(), mysql_plugin_get_keys(), needs_parens(), neighbour_connect_notify_task(), neighbour_delete(), neighbour_list_add(), new_element_cb(), new_ephemeral(), new_peer_entry(), new_sub(), next_phase(), nfa_add_alternation(), nfa_add_concatenation(), nfa_add_label(), notify_client(), notify_client_queues(), notify_send_probe(), notify_update(), ns_lookup_result_cb(), numeric_mpi_alloc_n_print(), numeric_resolution(), occ_cache_get_handle_ats_occ_cb(), occ_cache_get_handle_core_cb(), occ_hello_sent_cb(), OIDC_build_authz_code(), OIDC_build_token_response(), op_done_task(), op_get_element(), op_get_element_iterator(), op_register_element(), opc_free_iterator(), opc_search_iterator(), oprelease_manage_service(), oprelease_neighbour_conn(), oprelease_overlay_configure_topology(), oprelease_peer_getinfo(), oprelease_service_connect(), opstart_get_handle_core(), opstart_get_handle_transport(), opstart_get_slave_config(), opstart_link_controllers(), opstart_manage_service(), opstart_neighbour_conn(), opstart_overlay_configure_topology(), opstart_overlay_connect(), opstart_peer_create(), opstart_peer_destroy(), opstart_peer_getinfo(), opstart_peer_reconfigure(), opstart_peer_start(), opstart_peer_stop(), opstart_service_connect(), output_message(), overlay_connect_get_config(), overlay_connect_notify(), overlay_link_completed(), p1_transport_connect_cache_callback(), p2_controller_connect_cb(), p2_transport_connect(), p2_transport_connect_cache_callback(), pa_init(), packetizer(), parent_control_handler(), parse_attest(), parse_attest_ref(), parse_attestation_cont(), parse_attr(), parse_gnsrecordobject(), parse_pattern(), parse_record_data(), parse_result_call_iterator(), parse_ticket(), pass_plaintext_to_core(), path_cleanup_cb(), path_heap_cleanup(), peer_connect_notify_cb(), peer_create_cb(), peer_create_success_cb(), peer_destroy_success_cb(), peer_info_cb(), peer_list_add(), peer_respect_cb(), peer_transmit(), peerinformation_cb(), PEERSTORE_create_record_mq_envelope(), persist_access_token(), plan(), plugin_env_session_end(), plugin_session_info_cb(), policy_filename_cb(), post_profiler(), prc_stop_cb(), prepare_daemon(), prepare_ibf(), prepare_ipv4_packet(), prepare_ipv6_packet(), primary_task(), print_address(), print_examples_ecdh(), print_option(), process_dns_result(), process_hello(), process_helper_messages(), process_helper_msgs(), process_incoming(), process_kblock_for_unindex(), process_ksk_result(), process_local_reply(), process_notify(), process_peer(), process_peer_string(), process_peerinfo_hello(), process_pending_messages(), process_queue(), process_result(), process_result_with_request(), process_rq_task(), process_sks_result(), process_stat_in(), process_status(), profiler_reply_handle(), profiler_reply_handle_info(), progress_proc(), publish_cleanup(), publish_content(), publish_fs_connect_complete_cb(), publish_kblocks_cont(), publish_sblocks_cont(), publish_zone_dht_start(), publish_zone_namestore_next(), put_diff(), put_rfn(), put_set(), put_task(), qc_fragment_sent(), queue_destroy(), queue_read(), queue_send_msg(), queue_write(), rc_cleanup_operations(), rcop_cleanup_iterator(), read_dns4(), read_dns6(), read_process_fragment(), reannounce_regex(), reassembly_cleanup_task(), receive_ready(), receiver_destroy(), reciever(), RECLAIM_TICKETS_revoke(), RECLAIM_TICKETS_revoke_cancel(), reconnect(), reconnect_arm(), reconnect_arm_later(), reconnect_arm_monitor(), reconnect_arm_monitor_later(), reconnect_later(), reconnect_peer_ctx(), reconstruct_cb(), recursive_dns_resolution(), recursive_gns2dns_resolution(), recursive_gns_resolution_namecache(), recursive_gns_resolution_revocation(), refresh_block(), regex_add_multiple(), REGEX_INTERNAL_announce(), REGEX_INTERNAL_reannounce(), REGEX_INTERNAL_search(), regex_iterator(), REGEX_TEST_automaton_save_graph_step(), REGEX_TEST_read_from_file(), reghost_free_iterator(), register_host(), register_hosts(), register_next_host(), register_sender(), relative_multiply_double(), reliability_box_message(), remove_all(), remove_barrier(), remove_client_record(), remove_high_frequency_keywords(), remove_node(), remove_pending_message(), remove_queue_entry(), remove_rcop(), remove_stream_request(), request_done(), request_peers(), reschedule_connect(), reschedule_queue_timeout(), reschedule_session_timeout(), restart_nat_server(), restart_processing(), restore_fair(), restore_valid_peers(), result_processor(), resume_client_receive(), retry_transmission(), reversal_callback(), rfn_commit(), rfn_contest(), rfn_vote(), rocc_hello_sent_cb(), route_control_message_without_fc(), route_list_add(), route_packet(), rps_connect_complete_cb(), rps_disconnect_adapter(), RPS_sampler_get_n_rand_peers(), RPS_sampler_get_rand_peer_info(), RPS_sampler_resize(), rq_add(), rq_remove(), rsa_blinding_key_derive(), rsa_full_domain_hash(), run(), run_daemon(), run_httpd(), run_ready_steps(), sampler_mod_get_rand_peer(), sampler_resize(), save(), sb_realloc(), schedule_action(), schedule_block_download(), schedule_channel_destruction(), schedule_missing_requests(), schedule_next_hello(), schedule_next_task(), schedule_operation(), schedule_peer_transmission(), schedule_transmission(), schedule_transmit_search_request(), score_content(), search_iterator(), search_rcop(), search_reconnect(), search_result_free(), secret_ready_cb(), select_add(), select_del(), select_loop(), select_read_cb(), select_set_wakeup(), send_ack_cb(), send_ack_to_client(), send_alices_cryptodata_message(), send_barrier_status_msg(), send_bloomfilter(), send_channel_open(), send_client_element(), send_client_removed_element(), send_client_reply(), send_client_status_msg(), send_controller_link_response(), send_create(), send_create_ack(), send_disconnect(), send_find_peer_message(), send_hello(), send_hello_beacon(), send_hello_thru_rocc(), send_icmp_packet_via_tun(), send_intermediate_response(), send_keepalive(), send_key(), send_lookup_response(), send_offers_iterator(), send_p2p_done(), send_packet_to_cadet_channel(), send_pull_request(), send_push(), send_remaining_elements(), send_request(), send_store_response(), send_stream_peers(), send_syn(), send_tcp_packet_via_tun(), send_to_channel(), send_to_client_iter(), send_udp_packet_via_tun(), send_with_session(), sender_destroy(), server_access_cb(), server_connection_cb(), server_delete_session(), server_get_addresses(), server_log(), server_reschedule_session_timeout(), server_schedule(), server_send_callback(), server_start(), server_start_report_addresses(), server_v4_run(), server_v6_run(), server_wake_up(), service_client_mst_cb(), service_client_recv(), service_connect_comp(), service_mq_cancel(), service_mq_send(), service_shutdown(), service_started(), session_cmp_it(), session_connect_complete(), session_disconnect_adapter(), set_alternative_address(), set_filename(), set_key_retry_task(), set_listen_cb(), set_mutation_done(), set_operation_destroy(), set_primary_address(), set_result_cb(), set_string(), setup_ac(), setup_broadcast(), setup_cipher(), setup_cipher_aes(), setup_cipher_twofish(), setup_data_transfer(), setup_flood_message(), setup_fresh_address(), setup_job_headers(), setup_neighbour(), setup_receiver_mq(), setup_state_record(), shutdown_peers_reply_cb(), shutdown_pipe_cb(), sign_ephemeral_key(), signal_receive_error(), signal_receive_timeout(), signal_transmit_error(), simple_resolve(), slave_event_cb(), slave_list_add(), sockaddr_to_udpaddr_string(), SOCKS5_handshake_step(), sqlite_plugin_get_keys(), sqlite_plugin_get_zero_anonymity(), start_address_validation(), start_dht_request(), start_dv_learn(), start_initial_kx_out(), start_peer(), start_peers_task(), start_phone(), start_process(), start_profiling(), start_resolver_lookup(), start_shared_service_instance(), start_task(), stat_iterator(), statistics_done(), statistics_done_cb(), stats_cb(), stats_da(), step_depend_on(), stop_job(), stop_peer(), stop_peer_request(), store_all_states(), store_peer_presistently_iterator(), store_valid_peers(), strata_estimator_difference(), strata_estimator_write(), stream_read_callback(), stream_state_callback(), submit_req(), submit_request(), switch_address_bl_check_cont(), t_ax_decrypt(), t_ax_encrypt(), t_h_decrypt(), t_h_encrypt(), task_cancel_reconcile(), task_start_apply_round(), task_start_eval_echo(), task_start_finish(), task_start_grade(), task_start_reconcile(), tcp_nat_port_map_callback(), tcp_plugin_disconnect_session(), tcp_plugin_get_network_for_address(), tcp_plugin_get_session(), tcp_plugin_send(), template_plugin_get_network(), terminate_task(), test_master(), test_run(), testbed_run(), thread_destructor(), time_between(), timeout_overlay_connect(), timeout_rocc_task(), tmain(), to_file_raw_unaligned(), tokenizer_cb(), translate_dot_plus(), transmit(), transmit_address_to_client(), transmit_call_audio(), transmit_content(), transmit_cummulative_ack_cb(), transmit_fragment(), transmit_get(), transmit_item(), transmit_kx(), transmit_lookup_dns_result(), transmit_next(), transmit_on_queue(), transmit_pending(), transmit_ping_if_allowed(), transmit_query(), transmit_ready(), transmit_req_addr(), transmit_set(), transmit_task_cb(), transmit_timeout(), transmit_watch(), transport_communicator_start(), trigger_notifications(), try_again(), try_connect(), try_connect_using_address(), try_decrypt(), try_finish_step_early(), try_handle_plaintext(), try_old_ax_keys(), try_open_exit(), try_reconnect(), try_run_fast_ats_update(), try_send_normal_payload(), try_top_down_reconstruction(), try_transmission(), u8_strcount(), udp_disconnect_session(), udp_nat_port_map_callback(), udp_plugin_create_session(), udp_plugin_get_network_for_address(), union_copy_state(), union_op_cancel(), unix_address_to_sockaddr(), unix_demultiplexer(), unix_plugin_do_read(), unix_plugin_do_write(), unix_plugin_get_network(), unix_plugin_session_disconnect(), unload_keys(), update_active_address(), update_config_sections(), update_ephemeral(), update_friend_hello(), update_hello(), update_preference(), update_relative_values_for_peer(), update_tslots(), upnp_addr_change_cb(), uri_ksk_parse(), uri_loc_to_string(), uri_sks_to_string(), userinfo_endpoint(), verify_fair(), View_change_len(), View_clear(), View_remove_peer(), vpn_allocation_callback(), vpn_allocation_cb(), wait_op_completion(), wbarrier_status_cb(), wlan_plugin_update_session_timeout(), work(), write_benchmark_data(), write_task(), zone_iterate_proc(), and zone_iteration_finished().

◆ GNUNET_assert_at

#define GNUNET_assert_at (   cond,
  f,
  l 
)
Value:
do \
{ \
if (! (cond)) \
{ \
GNUNET_log (GNUNET_ERROR_TYPE_ERROR, \
_ ("Assertion failed at %s:%d. Aborting.\n"), \
f, \
l); \
GNUNET_abort_ (); \
} \
} while (0)
#define _(String)
GNU gettext support macro.
Definition: platform.h:180
static struct LoggingHandle * l

Use this for fatal errors that cannot be handled.

Definition at line 855 of file gnunet_common.h.

Referenced by GNUNET_xfree_(), GNUNET_xgrow_(), GNUNET_xmalloc_(), GNUNET_xmemdup_(), GNUNET_xstrdup_(), and GNUNET_xstrndup_().

◆ GNUNET_assert_from

#define GNUNET_assert_from (   cond,
  comp 
)
Value:
do \
{ \
if (! (cond)) \
{ \
GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, \
comp, \
_ ("Assertion failed at %s:%d. Aborting.\n"), \
__FILE__, \
__LINE__); \
GNUNET_abort_ (); \
} \
} while (0)
#define _(String)
GNU gettext support macro.
Definition: platform.h:180

Use this for fatal errors that cannot be handled.

Parameters
condCondition to evaluate
compComponent string to use for logging

Definition at line 876 of file gnunet_common.h.

◆ GNUNET_break

#define GNUNET_break (   cond)
Value:
do \
{ \
if (! (cond)) \
{ \
GNUNET_log (GNUNET_ERROR_TYPE_ERROR, \
_ ("Assertion failed at %s:%d.\n"), \
__FILE__, \
__LINE__); \
} \
} while (0)
#define _(String)
GNU gettext support macro.
Definition: platform.h:180

Use this for internal assertion violations that are not fatal (can be handled) but should not occur.

Definition at line 896 of file gnunet_common.h.

Referenced by __attribute__(), accept_client(), access_handler_callback(), activate_core_visible_dv_path(), add_address_to_hello(), add_error_cb(), add_revocation(), add_setter_action(), add_valid_address(), adjust_running_peers(), allocate_response_ip(), ats_connect_completion_cb(), ats_perf_mon_cb(), auth_key_to_string(), auto_config_cb(), backtalker_monotime_cb(), barrier_wait_cb(), bf_group_serialize_cb(), bind_rsa_pub(), bind_rsa_sig(), block_create(), block_plugin_dht_create_group(), block_plugin_dns_create_group(), block_plugin_fs_create_group(), block_plugin_fs_get_key(), block_plugin_gns_create_group(), block_plugin_regex_create_group(), block_plugin_regex_get_key(), block_plugin_revocation_create_group(), block_plugin_template_create_group(), block_plugin_test_create_group(), block_plugin_test_evaluate(), build_dns_query(), cadet_connect_adapter(), cadet_mq_send_impl(), cadet_mq_send_now(), cadet_reply_proc(), calculate_fork_degree(), call_event_handler(), cancel_aps(), cb_intersection_element_removed(), cb_intersection_request_alice(), change_service(), check_add_address(), check_add_host(), check_add_host_confirm(), check_add_queue_message(), check_address_add(), check_address_change_notification(), check_address_list(), check_alice_client_message(), check_announce(), check_attestation_delete_message(), check_attestation_result(), check_attestation_store_message(), check_attribute_delete_message(), check_attribute_result(), check_attribute_store_message(), check_bob_client_message(), check_bob_client_message_multipart(), check_bobs_cryptodata_multipart(), check_client_address_to_string(), check_client_index_start(), check_client_join(), check_client_keygen(), check_client_redirect_to_ip(), check_client_result(), check_client_seed(), check_client_send(), check_client_start_search(), check_collect(), check_communicator_available(), check_communicator_backchannel(), check_completed(), check_connection_reversal_request(), check_consume_ticket_message(), check_consume_ticket_result(), check_create_message(), check_data(), check_delete_message(), check_dht_local_get_result_seen(), check_dns_request(), check_event(), check_feedback(), check_for_glue(), check_get(), check_get_default_message(), check_get_path(), check_hello(), check_identity_set_default(), check_identity_update(), check_incoming_msg(), check_index_info(), check_index_start_failed(), check_info(), check_init(), check_issue_ticket_message(), check_iterate(), check_local_data(), check_lookup(), check_lookup_result(), check_monitor_get(), check_monitor_get_resp(), check_monitor_notify(), check_monitor_put(), check_notification(), check_notify_client(), check_notify_inbound(), check_peer_information(), check_preference_change(), check_put(), check_rd(), check_record_lookup(), check_record_result(), check_record_store(), check_recv(), check_reference_delete_message(), check_reference_result(), check_reference_store_message(), check_register(), check_remote_overlay_connect(), check_remove(), check_rename_message(), check_reply(), check_request(), check_request_connection_reversal(), check_response(), check_result(), check_revoke_ticket_message(), check_search(), check_search_response(), check_set(), check_set_default_message(), check_ssl_certificate(), check_statistics_value(), check_status(), check_store(), check_stream_input(), check_stun(), check_union_p2p_strata_estimator(), check_use_ip(), check_verify(), check_view_update(), check_watch(), check_zone_to_name_response(), child_death_task(), choose_exit(), churn_cb(), clean_task(), cleanup_shared_service_instance(), cleanup_task(), cleanup_validation_entry(), client_connect_get(), client_delete_session(), client_response_handler(), client_run(), comm_connect_cb(), comm_connect_completion_cb(), compute_rand_delay(), connect_completion_callback(), connect_fail_continuation(), connect_handler(), connect_probe_continuation(), consider_for_advertising(), controller_event_cb(), conversation_string_to_value(), core_init_cb(), core_mq_send_impl(), core_startup_cb(), create_channel_to_destination(), create_download_context(), create_keys(), create_listen_socket(), create_mhd_response_from_s5r(), create_response(), curl_download_prepare(), curl_task_download(), curl_upload_cb(), database_setup(), datacache_get_iterator(), decode_and_send(), decrypt_block_with_keyword(), decrypt_payload(), del_lookup_error_cb(), delete_old_block(), demultiplex_with_cmc(), dequeue(), derive_session_keys(), deserialize_download(), deserialize_fi_node(), deserialize_publish_file(), deserialize_search(), deserialize_search_result(), deserialize_unindex_file(), destroy_port_cb(), detach_terminal(), dht_get_string_handler(), disable(), disconn_status(), disconnect_neighbour(), disconnect_notify(), distribute_bandwidth(), dns_result_parser(), do_accept(), do_connect_peers(), do_decrypt(), do_disconnect(), do_encrypt(), do_rekey(), do_send(), do_shutdown(), do_wait(), do_write(), download_hostlist(), encrypt_existing_match(), encrypt_payload(), enforce_del_address(), enforce_start_preference(), enforce_start_property(), enforce_start_request(), enforce_start_send(), enforce_stop_preference(), enforce_stop_property(), enforce_stop_request(), enforce_stop_send(), enqueue(), event_cb(), execute_add(), execute_get(), execute_mutation(), execute_select(), extract_abs_time(), extract_abs_time_nbo(), extract_files(), extract_fixed_blob(), extract_result_cb(), extract_rsa_pub(), extract_rsa_public_key(), extract_rsa_sig(), extract_rsa_signature(), extract_string(), extract_uint16(), extract_uint32(), extract_uint64(), extract_utf8_string(), extract_var_blob(), extract_varsize_blob(), file_hash_finish(), filter_all(), filtered_map_initialization(), find_bucket(), find_session(), find_session_id(), finish_client_drop(), fip_signal_stop(), forward_reply(), free_all_it(), free_entry(), free_neighbour_cb(), free_peer(), free_pending_request(), free_tmps(), free_virtual_link(), GAS_addresses_add(), GAS_addresses_destroy(), GAS_addresses_get_peer_info(), GAS_addresses_update(), GAS_handle_address_add(), GAS_handle_request_address_cancel(), GAS_performance_notify_all_clients(), GAS_proportional_bulk_stop(), GCCH_handle_channel_open_ack(), GCCH_handle_channel_plaintext_data_ack(), GCCH_handle_local_data(), GCD_init(), GCPP_get_path_from_route(), GCT_handle_kx(), GCT_handle_kx_auth(), GCT_send(), GDS_CLIENTS_handle_reply(), GDS_DATACACHE_handle_put(), GDS_NEIGHBOURS_handle_get(), GDS_NEIGHBOURS_handle_put(), GDS_NEIGHBOURS_handle_reply(), GDS_ROUTING_process(), generate_gns_certificate(), get_delay(), get_existing_record(), get_file_information(), get_label(), get_latest(), get_longest_prefix(), get_preference(), get_property(), get_queue_head(), get_records_and_call_iterator(), get_serialization_short_name(), get_server_addresses(), get_symbol(), get_target_peers(), get_transmit_delay(), get_url_benchmark_data(), get_write_handle(), GNUNET_ABD_collect(), GNUNET_ABD_delegate_issue(), GNUNET_ABD_verify(), GNUNET_ATS_address_add(), GNUNET_ATS_address_add_session(), GNUNET_ATS_address_destroy(), GNUNET_ATS_address_update(), GNUNET_ATS_performance_done(), GNUNET_ATS_performance_list_addresses(), GNUNET_ATS_solver_generate_preferences_start(), GNUNET_ATS_solvers_experimentation_run(), GNUNET_ATS_solvers_solver_start(), GNUNET_ATS_TEST_generate_preferences_start(), GNUNET_ATS_TEST_generate_traffic_start(), GNUNET_ATS_TEST_logging_write_to_file(), GNUNET_BANDWIDTH_tracker_consume(), GNUNET_BIO_write(), GNUNET_BLOCK_context_destroy(), GNUNET_buffer_ensure_remaining(), GNUNET_CADET_channel_get_info(), GNUNET_CADET_connect(), GNUNET_CADET_get_channel(), GNUNET_CADET_get_path(), GNUNET_CADET_list_peers(), GNUNET_CADET_list_tunnels(), GNUNET_CONFIGURATION_parse(), GNUNET_CONFIGURATION_parse_and_run(), GNUNET_CONNECTION_connect_socket(), GNUNET_CONNECTION_create_from_accept(), GNUNET_CONNECTION_create_from_connect_to_unixpath(), GNUNET_CONNECTION_destroy(), GNUNET_CONTAINER_bloomfilter_or2(), GNUNET_CONTAINER_heap_destroy(), GNUNET_CONTAINER_meta_data_insert(), GNUNET_CONTAINER_meta_data_serialize(), GNUNET_CONTAINER_multihashmap_get_random(), GNUNET_CONTAINER_multipeermap_get_random(), GNUNET_CONTAINER_multishortmap_get_random(), GNUNET_CONTAINER_multiuuidmap_get_random(), GNUNET_CONVERSATION_call_start(), GNUNET_CONVERSATION_phone_create(), GNUNET_CRYPTO_ecc_bin_to_point(), GNUNET_CRYPTO_ecdsa_key_create_from_file(), GNUNET_CRYPTO_ecdsa_sign(), GNUNET_CRYPTO_eddsa_key_create_from_file(), GNUNET_CRYPTO_eddsa_private_key_from_string(), GNUNET_CRYPTO_hash_file(), GNUNET_CRYPTO_hash_file_cancel(), GNUNET_CRYPTO_pow_hash(), GNUNET_CRYPTO_rsa_blind(), GNUNET_CRYPTO_rsa_public_key_decode(), GNUNET_CRYPTO_rsa_public_key_encode(), GNUNET_CRYPTO_rsa_public_key_len(), GNUNET_CRYPTO_rsa_signature_decode(), GNUNET_CURL_append_header(), GNUNET_CURL_download_get_result_(), GNUNET_CURL_job_cancel(), GNUNET_CURL_perform2(), GNUNET_DATACACHE_destroy(), GNUNET_DATACACHE_put(), GNUNET_DATASTORE_disconnect(), GNUNET_DATASTORE_put(), GNUNET_DATASTORE_remove(), GNUNET_DHT_get_start(), GNUNET_DHT_put(), GNUNET_DISK_directory_create(), GNUNET_DISK_directory_remove(), GNUNET_DISK_file_open(), GNUNET_DISK_pipe_from_fd(), GNUNET_DISK_pipe_handle(), GNUNET_DISK_purge_cfg_dir(), GNUNET_DNS_disconnect(), GNUNET_DNS_request_answer(), GNUNET_DNSPARSER_builder_add_cert(), GNUNET_DNSSTUB_add_dns_sa(), GNUNET_DNSSTUB_start(), GNUNET_FS_directory_list_contents(), GNUNET_FS_download_start_from_search(), GNUNET_FS_download_sync_(), GNUNET_FS_file_information_add(), GNUNET_FS_file_information_create_from_data(), GNUNET_FS_file_information_create_from_file(), GNUNET_FS_file_information_create_from_reader(), GNUNET_FS_file_information_sync_(), GNUNET_FS_handle_on_demand_block(), GNUNET_FS_indexing_do_unindex(), GNUNET_FS_indexing_done(), GNUNET_FS_indexing_send_list(), GNUNET_FS_meta_data_make_directory(), GNUNET_FS_publish_stop(), GNUNET_FS_publish_sync_(), GNUNET_FS_publish_ublock_(), GNUNET_FS_remove_sync_file_(), GNUNET_FS_search_probe_progress_(), GNUNET_FS_search_result_sync_(), GNUNET_FS_search_signal_suspend_(), GNUNET_FS_search_stop(), GNUNET_FS_search_sync_(), GNUNET_FS_start(), GNUNET_FS_unindex_signal_suspend_(), GNUNET_FS_unindex_stop(), GNUNET_FS_unindex_sync_(), GNUNET_FS_uri_dup(), GNUNET_FS_uri_ksk_create(), GNUNET_FS_uri_ksk_merge(), GNUNET_FS_uri_ksk_to_string_fancy(), GNUNET_FS_uri_parse(), GNUNET_FS_uri_sks_get_content_id(), GNUNET_FS_uri_sks_get_namespace(), GNUNET_FS_uri_to_string(), GNUNET_GNS_lookup_limited(), GNUNET_GNSRECORD_block_decrypt(), GNUNET_GNSRECORD_records_get_size(), GNUNET_GNSRECORD_records_serialize(), GNUNET_GNSRECORD_z2s(), GNUNET_HELLO_iterate_addresses(), GNUNET_HOSTLIST_client_start(), GNUNET_HOSTLIST_server_start(), GNUNET_IDENTITY_create(), GNUNET_IDENTITY_delete(), GNUNET_IDENTITY_disconnect(), GNUNET_IDENTITY_ego_lookup(), GNUNET_IDENTITY_ego_lookup_by_suffix(), GNUNET_IDENTITY_get(), GNUNET_IDENTITY_rename(), GNUNET_IDENTITY_set(), GNUNET_log_skip(), GNUNET_MY_extract_result(), GNUNET_NAMECACHE_disconnect(), GNUNET_NAMESTORE_disconnect(), GNUNET_NAMESTORE_records_lookup(), GNUNET_NAMESTORE_records_store(), GNUNET_NAT_AUTO_autoconfig_start(), GNUNET_NAT_AUTO_test_start(), GNUNET_NAT_mini_get_external_ipv4_cancel_(), GNUNET_NAT_register(), GNUNET_NAT_request_reversal(), GNUNET_NAT_test_address(), GNUNET_NAT_test_start(), GNUNET_NETWORK_socket_select(), GNUNET_NETWORK_unix_precheck(), GNUNET_NT_scanner_get_type(), GNUNET_OS_command_stop(), GNUNET_OS_install_parent_control_handler(), GNUNET_PEER_change_rc(), GNUNET_PEER_decrement_rcs(), GNUNET_PEER_intern(), GNUNET_PEERSTORE_disconnect(), GNUNET_PLUGIN_test(), GNUNET_PQ_eval_prepared_singleton_select(), GNUNET_PQ_eval_result(), GNUNET_REGEX_announce(), GNUNET_REGEX_search(), GNUNET_RESOLVER_hostname_get(), GNUNET_RESOLVER_ip_get(), GNUNET_REVOCATION_revoke(), GNUNET_SCALARPRODUCT_accept_computation(), GNUNET_SCALARPRODUCT_start_computation(), GNUNET_SECRETSHARING_create_session(), GNUNET_SERVER_connect_notify_cancel(), GNUNET_SERVER_destroy(), GNUNET_SERVER_disconnect_notify_cancel(), GNUNET_SERVER_inject(), GNUNET_SERVER_stop_listening(), GNUNET_SERVICE_client_disable_continue_warning(), GNUNET_SERVICE_run_(), GNUNET_SET_commit(), GNUNET_STATISTICS_destroy(), GNUNET_STRINGS_data_to_string(), GNUNET_STRINGS_string_to_data(), GNUNET_TESTBED_barrier_init_(), GNUNET_TESTBED_cancel_registration(), GNUNET_TESTBED_controller_connect(), GNUNET_TESTBED_controller_destroy_(), GNUNET_TESTBED_deregister_host_at_(), GNUNET_TESTBED_host_resolve_(), GNUNET_TESTBED_hosts_load_from_loadleveler(), GNUNET_TESTBED_is_host_habitable(), GNUNET_TESTBED_mark_host_registered_at_(), GNUNET_TESTBED_overlay_configure_topology_va(), GNUNET_TESTBED_overlay_write_topology_to_file(), GNUNET_TESTBED_parse_error_string_(), GNUNET_TESTBED_peer_lookup_by_id_(), GNUNET_TESTBED_peer_update_configuration(), GNUNET_TESTBED_run(), GNUNET_TESTBED_underlay_configure_link(), GNUNET_TESTBED_underlay_configure_topology(), GNUNET_TESTBED_underlay_configure_topology_va(), GNUNET_TESTBED_underlaylinkmodel_commit(), GNUNET_TESTING_peer_kill(), GNUNET_TESTING_peer_start(), GNUNET_TESTING_peer_wait(), GNUNET_TESTING_release_port(), GNUNET_TIME_absolute_add(), GNUNET_TIME_absolute_get_monotonic(), GNUNET_TIME_calculate_eta(), GNUNET_TIME_relative_add(), GNUNET_TIME_relative_multiply(), GNUNET_TIME_relative_to_absolute(), GNUNET_TIME_year_to_time(), GNUNET_TRANSPORT_address_to_string(), GNUNET_TRANSPORT_communicator_disconnect(), GNUNET_TRANSPORT_communicator_receive(), GNUNET_TRANSPORT_is_connected(), GNUNET_TRANSPORT_offer_hello(), GNUNET_TRANSPORT_ps2s(), GNUNET_TRANSPORT_TESTING_send(), GNUNET_TRANSPORT_TESTING_transport_communicator_open_queue(), GNUNET_TUN_sockaddr_cmp(), GNUNET_VPN_redirect_to_ip(), GPI_plugins_unload(), GSC_CLIENTS_deliver_message(), GSC_KX_init(), GSC_SESSIONS_confirm_typemap(), GSC_SESSIONS_queue_request(), GSC_SESSIONS_set_typemap(), GSC_TYPEMAP_get_from_message(), GSF_peer_connect_handler(), GSF_peer_disconnect_handler(), GSF_pending_request_get_message_(), GSF_pending_request_update_(), GSF_plan_notify_peer_disconnect_(), GSF_plan_notify_request_done_(), GSF_push_start_(), GST_ats_add_address(), GST_ats_add_inbound_address(), GST_ats_block_reset(), GST_ats_del_session(), GST_destroy_peer(), GST_destroy_peers(), GST_hello_modify_addresses(), GST_neighbours_handle_session_ack(), GST_neighbours_handle_session_syn(), GST_neighbours_handle_session_syn_ack(), GST_neighbours_keepalive_response(), GST_neighbours_send(), GST_neighbours_session_terminated(), GST_neighbours_switch_to_address(), GST_plugins_load(), GST_plugins_monitor_subscribe(), GST_plugins_unload(), GST_stats_destroy(), GST_validation_handle_ping(), GST_validation_handle_pong(), GST_validation_set_address_use(), habitability_check(), handle_address_change_notification(), handle_alice_client_message(), handle_alice_client_message_multipart(), handle_announce(), handle_arm_result(), handle_ats_address_suggestion(), handle_ats_start(), handle_attestation_result(), handle_attribute_result(), handle_auto_result(), handle_autoconfig_request(), handle_barrier_init(), handle_barrier_wait(), handle_bob_client_message(), handle_bob_client_message_multipart(), handle_cadet_resume_message(), handle_call_audio(), handle_call_hangup(), handle_call_picked_up(), handle_call_resume(), handle_call_suspend(), handle_channel_create(), handle_channel_created(), handle_client_accept(), handle_client_audio_message(), handle_client_blacklist_init(), handle_client_blacklist_reply(), handle_client_cancel(), handle_client_conclude(), handle_client_copy_lazy_connect(), handle_client_copy_lazy_prepare(), handle_client_create_set(), handle_client_decrypt(), handle_client_evaluate(), handle_client_hangup_message(), handle_client_insert(), handle_client_iter_ack(), handle_client_iterate(), handle_client_keygen(), handle_client_listen(), handle_client_loc_sign(), handle_client_monitor_peers(), handle_client_mutation(), handle_client_pickup_message(), handle_client_recv_ok(), handle_client_redirect_to_service(), handle_client_response(), handle_client_resume_message(), handle_client_start(), handle_client_suspend_message(), handle_client_unindex(), handle_connect(), handle_connect_notify(), handle_copy_lazy(), handle_datastore_reply(), handle_del_address(), handle_del_queue_message(), handle_dht_local_get_result_seen(), handle_dht_p2p_put(), handle_dht_response(), handle_dht_result(), handle_disconnect(), handle_disconnect_confirm(), handle_disconnect_notify(), handle_dns_result(), handle_dv_learn(), handle_end_iteration(), handle_ephemeral_key(), handle_event(), handle_find_peer(), handle_fragment_box(), handle_get_zero_anonymity(), handle_gns_resolution_result(), handle_gns_response(), handle_gns_result(), handle_hello_for_client(), handle_hello_for_incoming(), handle_helper_message(), handle_identity_result_code(), handle_identity_set_default(), handle_identity_update(), handle_incoming_ack(), handle_init_reply(), handle_intersection_p2p_element_info(), handle_iterate(), handle_iteration_next(), handle_iteration_stop(), handle_link_controllers(), handle_link_controllers_result(), handle_local_data(), handle_lookup_block(), handle_lookup_block_response(), handle_monitor_end(), handle_monitor_next(), handle_monitor_start(), handle_notify_inbound(), handle_op_fail_event(), handle_opsuccess(), handle_overlay_connect(), handle_p2p_get(), handle_p2p_reply(), handle_peer_conevent(), handle_peer_create(), handle_peer_create_success(), handle_peer_event(), handle_peer_reconfigure(), handle_peer_start(), handle_pong(), handle_port_close(), handle_port_open(), handle_put(), handle_query(), handle_queue_create_fail(), handle_queue_create_ok(), handle_raw_message(), handle_record_result(), handle_record_result_end(), handle_record_store(), handle_recv(), handle_reference_result(), handle_regex_result(), handle_register(), handle_release_reserve(), handle_reservation_result(), handle_response(), handle_response_end(), handle_result(), handle_results(), handle_revocation_union_request(), handle_search(), handle_search_result(), handle_send_message_ack(), handle_send_ok(), handle_send_ready(), handle_set(), handle_set_quota(), handle_slave_config(), handle_statistics_end(), handle_statistics_watch_value(), handle_status(), handle_store(), handle_stun(), handle_suggest(), handle_suggest_cancel(), handle_tcp_nat_probe(), handle_tcp_welcome(), handle_ticket_iteration_next(), handle_ticket_iteration_stop(), handle_ticket_result(), handle_union_p2p_demand(), handle_union_p2p_elements(), handle_union_p2p_full_element(), handle_union_p2p_strata_estimator(), handle_validation_response(), handle_watch_cancel(), handle_zone_to_name(), handle_zone_to_name_it(), handle_zone_to_name_response(), hostkeys_unload(), hosts_directory_scan_callback(), http_client_plugin_get_session(), http_client_plugin_send(), http_common_plugin_address_pretty_printer(), http_common_plugin_address_to_string(), http_common_plugin_address_to_url(), http_common_plugin_dnsresult_to_address(), http_common_plugin_string_to_address(), http_common_socket_from_address(), http_split_address(), icmp_from_helper(), ifc_broadcast(), ifc_proc(), inflate_data(), initialize_map_unfiltered(), initialize_network_handle(), inject_message(), intersection_evaluate(), is_element_of_generation(), iterate_cb(), iterate_initial_edge(), iteration_completion_cb(), iterator_bf_reduce(), kill_session(), learn_dv_path(), LEGACY_SERVICE_get_server_addresses(), LEGACY_SERVICE_run(), libgnunet_plugin_ats_proportional_done(), libgnunet_plugin_datacache_sqlite_init(), libgnunet_plugin_transport_tcp_done(), libgnunet_plugin_transport_udp_done(), libgnunet_plugin_transport_unix_done(), link_processor(), load(), load_episode(), load_state(), lookup_it(), lookup_it_finished(), lookup_it_processor(), lookup_nick_it(), lookup_ssl_httpd(), loopback_resolution(), main(), maint_child_death(), make_dev_zero(), make_peer(), make_up_icmp_service_payload(), mark_as_reachable(), master_task(), merge_pr(), merge_with_nick_records(), message_token(), mhd_connection_cb(), mhd_log_callback(), modify_request(), mq_done_finish_caller_shutdown(), mq_error_handler(), mq_send(), mq_send_impl(), multicast_pong(), mysql_plugin_estimate_size(), mysql_plugin_get_replication(), mysql_plugin_put(), namecache_cache_block(), namecache_postgres_cache_block(), namecache_postgres_expire_blocks(), namecache_postgres_lookup_block(), namecache_sqlite_cache_block(), namecache_sqlite_lookup_block(), namestore_flat_lookup_records(), namestore_postgres_lookup_records(), namestore_postgres_store_records(), namestore_sqlite_lookup_records(), namestore_sqlite_store_records(), needs_parentheses(), neighbour_dv_monotime_cb(), next_phase(), nibble_to_regex(), no_resolve(), notify_client(), ns_lookup_result_cb(), OIDC_build_authz_code(), opc_free_iterator(), open_dev_null(), open_listen_socket(), open_socket(), opstart_get_handle_transport(), opstart_get_stats(), packetizer(), parse_result_call_iterator(), pass_plaintext_to_core(), peer_id_cb(), peerinfo_it(), PEERSTORE_parse_record_message(), peerstore_sqlite_iterate_records(), perform_dht_put(), phone_event_handler(), play(), plugin_env_address_change_notification(), plugin_env_address_to_type(), plugin_env_session_end(), plugin_env_session_start(), plugin_session_info_cb(), post_test_shutdown_ready_cb(), postgres_plugin_get_random(), prepare_ipv4_packet(), prepare_ipv6_packet(), print_ack_state(), print_query_result(), print_revocation_result(), process(), process_acl4(), process_acl6(), process_data(), process_ego_file(), process_external_ip(), process_get(), process_helper_messages(), process_helper_msgs(), process_if(), process_incoming(), process_job_queue(), process_kblock_for_unindex(), process_keys(), process_ksk_result(), process_local_reply(), process_parallel_lookup_result(), process_queue(), process_record_messages(), process_reply(), process_result(), process_result_with_request(), process_sks_result(), process_udp_message(), progress_cb(), publicize_rm(), qconv_abs_time(), qconv_fixed(), qconv_rsa_public_key(), qconv_rsa_signature(), qconv_uint16(), qconv_uint32(), qconv_uint64(), read_dns4(), read_dns6(), read_download_request(), read_host_file(), read_task(), read_update_information_graph(), reconnect(), reconnect_arm_monitor_task(), reconstruct_cont(), record_iterator(), recursive_dns_resolution(), recursive_gns2dns_resolution(), refresh_bloomfilter(), REGEX_BLOCK_create(), regex_find_path(), REGEX_INTERNAL_search(), regex_next_edge(), relative_multiply_double(), release_session(), reliability_box_message(), remove_parentheses(), remove_sync_file_in_dir(), remove_timeout_messages_and_select(), reply_to_dns(), request_done(), retry_kx(), route_packet(), rsa_sign_mpi(), run(), run_zbar(), run_zone_iteration_round(), s2i_full(), sample_load_task(), save(), schedule_block_download(), schedule_watch_request(), search_result_free(), search_result_stop(), search_result_suspend(), select_peer(), select_write_cb(), send_ack(), send_add_address_message(), send_client_element(), send_client_removed_element(), send_delayed(), send_hello(), send_ic_request(), send_icmp_packet_via_tun(), send_lookup_response(), send_push(), send_request_to_client(), send_syn(), send_syn_ack_message(), send_tcp_packet_via_tun(), send_udp_packet_via_tun(), send_with_session(), server_access_cb(), server_check_ipv6_support(), server_get_addresses(), server_parse_url(), service_main(), service_task(), set_alternative_address(), set_external_ipv4(), set_feedback_task(), set_pref_task(), set_primary_address(), set_prop_task(), setup_ac(), setup_db(), setup_job(), setup_service(), show_channel(), show_connection(), shutdown_task(), sighandler_child_death(), signal_transmit_error(), solver_info_cb(), sqlite_plugin_del(), sqlite_plugin_get(), sqlite_plugin_get_closest(), sqlite_plugin_get_keys(), sqlite_plugin_get_random(), sqlite_plugin_put(), start_dv_learn(), start_p2p_processing(), start_process(), start_profiling(), stat_comp_cb(), stat_complete_cb(), stat_disconnect_adapter(), stop_helper(), stop_shared_service_instance(), store_and_free_entries(), store_record_continuation(), store_valid_peers(), strata_estimator_read(), stun_read_task(), suggest_to_connect(), suspend_operation(), switch_address_bl_check_cont(), task_download(), task_start_apply_round(), tcp_from_helper(), tcp_nat_port_map_callback(), tcp_plugin_address_pretty_printer(), tcp_plugin_check_address(), tcp_plugin_get_network_for_address(), tcp_plugin_get_session(), tcp_plugin_send(), tcp_plugin_string_to_address(), teardown_service(), template_plugin_address_to_string(), template_plugin_del(), template_plugin_drop(), template_plugin_estimate_size(), template_plugin_get(), template_plugin_get_closest(), template_plugin_get_expiration(), template_plugin_get_key(), template_plugin_get_random(), template_plugin_get_replication(), template_plugin_get_session(), template_plugin_get_zero_anonymity(), template_plugin_put(), template_plugin_remove_key(), template_plugin_string_to_address(), terminate_task(), test_master(), testbed_run(), testing_main(), tmt_rdy_ping(), tokenizer_cb(), transmit_client_response(), transmit_fragment(), transmit_ping_if_allowed(), transmit_ready(), transmit_send_continuation(), transport_addr_to_str_cb(), trigger_recursive_download(), try_combine_recent(), try_connect_using_address(), try_match_block(), try_open_exit(), try_reconnect(), try_transmission_to_peer(), udp_from_helper(), udp_nat_port_map_callback(), udp_plugin_get_network_for_address(), udp_plugin_get_session(), udp_plugin_lookup_session(), udp_plugin_send(), udp_plugin_update_session_timeout(), udp_select_read(), udp_select_send(), udp_string_to_address(), unblock_address(), union_evaluate(), unix_plugin_address_to_string(), unix_plugin_check_address(), unix_plugin_do_write(), unix_plugin_get_session(), unix_plugin_send(), unix_plugin_session_disconnect(), unix_plugin_string_to_address(), unix_plugin_update_session_timeout(), unix_real_send(), unload_plugin(), update_config(), update_config_sections(), update_flood_times(), update_friend_hello(), update_ping_data(), update_preference(), update_sre_result_maps(), upnp_addr_change_cb(), warn_no_client_continue(), warn_no_receive_done(), wlan_plugin_address_to_string(), wlan_plugin_get_session(), wlan_plugin_string_to_address(), write_benchmark_data(), write_pid_file(), and zone_iterate_proc().

◆ GNUNET_break_op

#define GNUNET_break_op (   cond)
Value:
do \
{ \
if (! (cond)) \
{ \
_ ("External protocol violation detected at %s:%d.\n"), \
__FILE__, \
__LINE__); \
} \
} while (0)
#define _(String)
GNU gettext support macro.
Definition: platform.h:180

Use this for assertion violations caused by other peers (i.e.

protocol violations). We do not want to confuse end-users (say, some other peer runs an older, broken or incompatible GNUnet version), but we still want to see these problems during development and testing. "OP == other peer".

Definition at line 918 of file gnunet_common.h.

Referenced by add_revocation(), alice_or_betty(), block_plugin_dht_evaluate(), block_plugin_dns_evaluate(), block_plugin_fs_evaluate(), block_plugin_gns_evaluate(), block_plugin_gns_get_key(), block_plugin_regex_get_key(), block_plugin_revocation_evaluate(), block_plugin_revocation_get_key(), block_plugin_test_evaluate(), cadet_mq_error_handler(), cadet_reply_proc(), cb_intersection_request_alice(), check_advertisement(), check_alice_client_message(), check_alice_client_message_multipart(), check_alices_cryptodata_message(), check_arm_list_result(), check_backchannel_encapsulation(), check_barrier_status(), check_bob_client_message(), check_bobs_cryptodata_message(), check_connection_create(), check_dht_p2p_get(), check_dht_p2p_put(), check_dht_p2p_result(), check_dns_request(), check_dv_box(), check_dv_learn(), check_encrypted(), check_fragment_box(), check_hello(), check_icmp_back(), check_icmp_remote(), check_icmp_service(), check_incoming_msg(), check_intersection_p2p_bf(), check_local_data(), check_manage_peer_service(), check_p2p_get(), check_p2p_put(), check_peer_pull_reply(), check_reliability_ack(), check_remote_overlay_connect(), check_request(), check_tcp_back(), check_tcp_data(), check_tcp_remote(), check_tcp_service(), check_udp_back(), check_udp_remote(), check_udp_service(), check_union_p2p_demand(), check_union_p2p_elements(), check_union_p2p_full_element(), check_union_p2p_ibf(), check_union_p2p_inquiry(), check_union_p2p_offer(), compute_service_response(), conversation_value_to_string(), core_mq_error_handler(), datacache_get_iterator(), decrypted_error_cb(), dns_result_parser(), dns_value_to_string(), do_decrypt(), do_s5r_read(), enc_notify_cb(), encrypt_existing_match(), evaluate_block_regex(), evaluate_block_regex_accept(), forward_reply(), fragment_msg_proc(), GCC_create_inbound(), GCCH_handle_channel_open_ack(), GCCH_handle_channel_plaintext_data_ack(), GCT_handle_encrypted(), GCT_handle_kx(), GCT_handle_kx_auth(), get_hello_address_size(), gns_value_to_string(), GNUNET_BLOCK_is_accepting(), GNUNET_CONTAINER_meta_data_deserialize(), GNUNET_CRYPTO_paillier_encrypt(), GNUNET_CRYPTO_paillier_encrypt1(), GNUNET_CRYPTO_paillier_hom_add(), GNUNET_CRYPTO_rsa_private_key_get_public(), GNUNET_CRYPTO_rsa_public_key_decode(), GNUNET_CRYPTO_rsa_signature_decode(), GNUNET_CRYPTO_rsa_unblind(), GNUNET_CRYPTO_rsa_verify(), GNUNET_DEFRAGMENT_process_fragment(), GNUNET_DNSPARSER_parse(), GNUNET_DNSPARSER_parse_cert(), GNUNET_DNSPARSER_parse_mx(), GNUNET_DNSPARSER_parse_query(), GNUNET_DNSPARSER_parse_record(), GNUNET_DNSPARSER_parse_soa(), GNUNET_FRAGMENT_process_ack(), GNUNET_GNSRECORD_block_decrypt(), GNUNET_GNSRECORD_records_deserialize(), GNUNET_GNSRECORD_records_get_size(), GNUNET_GNSRECORD_records_serialize(), GNUNET_HELLO_extract_address(), GNUNET_HELLO_iterate_addresses(), GNUNET_MQ_extract_nested_mh_(), GNUNET_MST_from_buffer(), GNUNET_SERVER_inject(), GNUNET_SERVER_mst_receive(), GNUNET_TESTBED_extract_config_(), GSC_SESSIONS_confirm_typemap(), GSC_SESSIONS_set_typemap(), GSC_TYPEMAP_get_from_message(), GST_neighbours_handle_disconnect_message(), GST_neighbours_handle_quota_message(), GST_neighbours_handle_session_ack(), GST_neighbours_handle_session_syn(), GST_neighbours_handle_session_syn_ack(), GST_neighbours_keepalive(), GST_neighbours_keepalive_response(), GST_receive_callback(), GST_validation_handle_hello(), GST_validation_handle_ping(), GST_validation_handle_pong(), handle_add_host(), handle_add_queue_message(), handle_barrier_cancel(), handle_barrier_init(), handle_barrier_status(), handle_bobs_cryptodata_message(), handle_cadet_hangup_message(), handle_cadet_pickup_message(), handle_cadet_ring_message(), handle_cadet_suspend_message(), handle_call_resume(), handle_call_suspend(), handle_client_pickup_message(), handle_connection_broken(), handle_connection_create(), handle_connection_create_ack(), handle_connection_destroy(), handle_dht_p2p_get(), handle_dht_p2p_put(), handle_dht_p2p_result(), handle_dht_response(), handle_dns_request(), handle_dv_box(), handle_dv_learn(), handle_encrypted(), handle_ephemeral_key(), handle_fragment_box(), handle_gns2dns_result(), handle_gns_resolution_result(), handle_gns_response(), handle_gns_result(), handle_icmp_back(), handle_icmp_remote(), handle_icmp_service(), handle_inbound_channel(), handle_intersection_p2p_bf(), handle_intersection_p2p_done(), handle_intersection_p2p_element_info(), handle_link_controllers(), handle_list(), handle_namecache_block_response(), handle_p2p_estimate(), handle_p2p_put(), handle_p2p_revoke(), handle_peer_pull_reply(), handle_peer_pull_request(), handle_peer_push(), handle_phone_audio(), handle_phone_resume(), handle_phone_suspend(), handle_ping(), handle_pong(), handle_raw_message(), handle_reply(), handle_request_connection_reversal(), handle_revocation_union_request(), handle_revoke_message(), handle_status(), handle_tcp_data(), handle_tcp_nat_probe(), handle_tcp_remote(), handle_tcp_service(), handle_tcp_welcome(), handle_tunnel_encrypted(), handle_tunnel_kx(), handle_tunnel_kx_auth(), handle_udp_remote(), handle_union_p2p_demand(), handle_union_p2p_done(), handle_union_p2p_elements(), handle_union_p2p_full_done(), handle_union_p2p_full_element(), handle_union_p2p_ibf(), handle_union_p2p_request_full(), handle_validation_challenge(), handle_validation_response(), inflate_data(), list_callback(), match_full_data(), mq_init(), parse_abs_time(), parse_boolean(), parse_fixed_data(), parse_name(), parse_object(), parse_rel_time(), parse_rsa_public_key(), parse_rsa_signature(), parse_string(), parse_u16(), parse_u32(), parse_u64(), parse_u8(), parse_variable_data(), peer_mq_error_handler(), process_bf(), process_data(), process_kblock(), process_kblock_for_unindex(), process_ksk_result(), process_sblock(), process_udp_message(), publicize_rm(), read_process_ack(), read_task(), recursive_cname_resolution(), recursive_gns2dns_resolution(), recursive_pkey_resolution(), REGEX_BLOCK_check(), REGEX_BLOCK_get_key(), REGEX_BLOCK_iterate(), reply_to_dns(), route_packet(), select_read_cb(), set_listen_cb(), set_result_cb(), sock_read(), store_ax_keys(), strata_estimator_read(), task_start_apply_round(), tcp_plugin_check_address(), try_handle_plaintext(), try_match_block(), udp_address_to_string(), udp_plugin_address_pretty_printer(), udp_plugin_check_address(), udp_plugin_get_session(), udp_select_read(), unix_plugin_do_read(), update_ax_by_kx(), validate_dv_initiator_signature(), verify_message_crypto(), verify_revoke_message(), wbarrier_status_cb(), and wlan_plugin_address_suggested().

◆ GNUNET_log_strerror

#define GNUNET_log_strerror (   level,
  cmd 
)
Value:
do \
{ \
GNUNET_log (level, \
_ ("`%s' failed at %s:%d with error: %s\n"), \
cmd, \
__FILE__, \
__LINE__, \
strerror (errno)); \
} while (0)
#define _(String)
GNU gettext support macro.
Definition: platform.h:180

Log an error message at log-level 'level' that indicates a failure of the command 'cmd' with the message given by strerror(errno).

Definition at line 937 of file gnunet_common.h.

Referenced by accept_client(), automaton_create_proofs(), bi_destroy(), child_death_task(), create_listen_socket(), database_setup(), decrementBit(), dfa_merge_nondistinguishable_states(), dht_connected(), do_accept(), do_dns_read(), do_send(), get_server_addresses(), GN_request_connection_reversal(), GN_stop_gnunet_nat_server_(), GNUNET_ARM_request_service_start(), GNUNET_CLIENT_test(), GNUNET_CONTAINER_bloomfilter_load(), GNUNET_FRIENDS_parse(), GNUNET_FS_directory_builder_finish(), GNUNET_MST_read(), GNUNET_NETWORK_test_pf(), GNUNET_NETWORK_unix_precheck(), GST_stats_init(), handle_data(), handle_stop(), iface_proc(), ifc_broadcast(), listen_cb(), load_keys(), main(), mq_send(), netint_proc(), open_dev_null(), proto_read_kx(), publicize_rm(), queue_read(), queue_read_kx(), queue_write(), read_dns4(), read_dns6(), RECLAIM_TICKETS_init(), restart_nat_server(), run(), select_read_cb(), select_write_cb(), send_response(), server_check_ipv6_support(), setup_service(), setup_sockets(), shutdown_task(), sock_read(), stop_broadcast(), stun_dns_callback(), tcp_plugin_address_to_string(), tcp_plugin_get_session(), tcp_send(), test_stun(), try_connect_using_address(), try_send_tcp(), try_send_udp(), udp_ipv4_broadcast_send(), udp_ipv6_broadcast_send(), unix_plugin_do_read(), unix_real_send(), unix_transport_server_start(), updateUsage(), and write_data().

◆ GNUNET_log_from_strerror

#define GNUNET_log_from_strerror (   level,
  component,
  cmd 
)
Value:
do \
{ \
GNUNET_log_from (level, \
_ ("`%s' failed at %s:%d with error: %s\n"), \
cmd, \
__FILE__, \
__LINE__, \
strerror (errno)); \
} while (0)
static char * component
Running component.
#define _(String)
GNU gettext support macro.
Definition: platform.h:180

Log an error message at log-level 'level' that indicates a failure of the command 'cmd' with the message given by strerror(errno).

Definition at line 955 of file gnunet_common.h.

Referenced by get_my_cnf_path(), and nat_server_read().

◆ GNUNET_log_strerror_file

#define GNUNET_log_strerror_file (   level,
  cmd,
  filename 
)
Value:
do \
{ \
GNUNET_log (level, \
_ ("`%s' failed on file `%s' at %s:%d with error: %s\n"), \
cmd, \
__FILE__, \
__LINE__, \
strerror (errno)); \
} while (0)
#define _(String)
GNU gettext support macro.
Definition: platform.h:180
static char * filename

Log an error message at log-level 'level' that indicates a failure of the command 'cmd' with the message given by strerror(errno).

Definition at line 974 of file gnunet_common.h.

Referenced by access_handler_callback(), calculate_pow(), cleanup(), deserialize_download_file(), deserialize_file_information(), deserialize_publish_file(), deserialize_search_file(), determine_id(), discard_hosts_helper(), dump_my_hello(), full_recursive_download(), get_server_addresses(), GNUNET_ATS_TEST_logging_write_to_file(), GNUNET_DISK_file_backup(), GNUNET_DISK_file_copy(), GNUNET_DISK_fix_permissions(), GNUNET_FRIENDS_parse(), GNUNET_FS_download_stop(), GNUNET_FS_download_sync_(), GNUNET_FS_file_information_create_from_file(), GNUNET_FS_file_information_destroy(), GNUNET_FS_file_information_sync_(), GNUNET_FS_remove_sync_dir_(), GNUNET_FS_remove_sync_file_(), GNUNET_HOSTLIST_client_start(), GNUNET_NETWORK_socket_close(), GNUNET_NETWORK_unix_precheck(), GNUNET_PQ_run_sql(), GST_stats_init(), handle_create_message(), handle_delete_message(), handle_rename_message(), hostkeys_load(), LEGACY_SERVICE_get_server_addresses(), libgnunet_plugin_datastore_sqlite_done(), load(), load_keys(), open_dev_null(), print_key(), process_result_with_request(), purge_cfg_dir(), read_host_file(), reconstruct_cb(), remove_garbage(), remove_sync_file_in_dir(), run(), save(), setup_log_file(), shutdown_task(), sync_rd(), try_match_block(), try_top_down_reconstruction(), update_hello(), updateUsage(), and write_proof().

◆ GNUNET_log_from_strerror_file

#define GNUNET_log_from_strerror_file (   level,
  component,
  cmd,
  filename 
)
Value:
do \
{ \
GNUNET_log_from (level, \
_ ("`%s' failed on file `%s' at %s:%d with error: %s\n"), \
cmd, \
__FILE__, \
__LINE__, \
strerror (errno)); \
} while (0)
static char * component
Running component.
#define _(String)
GNU gettext support macro.
Definition: platform.h:180
static char * filename

Log an error message at log-level 'level' that indicates a failure of the command 'cmd' with the message given by strerror(errno).

Definition at line 993 of file gnunet_common.h.

Referenced by GNUNET_DATACACHE_destroy().

Typedef Documentation

◆ GNUNET_Logger

typedef void(* GNUNET_Logger) (void *cls, enum GNUNET_ErrorType kind, const char *component, const char *date, const char *message)

User-defined handler for log messages.

Parameters
clsclosure
kindsevereity
componentwhat component is issuing the message?
datewhen was the message logged?
messagewhat is the message

Definition at line 405 of file gnunet_common.h.

Enumeration Type Documentation

◆ GNUNET_ErrorType

Types of errors.

Enumerator
GNUNET_ERROR_TYPE_UNSPECIFIED 
GNUNET_ERROR_TYPE_NONE 
GNUNET_ERROR_TYPE_ERROR 
GNUNET_ERROR_TYPE_WARNING 
GNUNET_ERROR_TYPE_MESSAGE 
GNUNET_ERROR_TYPE_INFO 
GNUNET_ERROR_TYPE_DEBUG 
GNUNET_ERROR_TYPE_INVALID 
GNUNET_ERROR_TYPE_BULK 

Definition at line 378 of file gnunet_common.h.

Function Documentation

◆ GNUNET_get_log_skip()

int GNUNET_get_log_skip ( void  )

Get the number of log calls that are going to be skipped.

Returns
number of log calls to be ignored

Definition at line 946 of file common_logging.c.

References skip_log.

947 {
948  return skip_log;
949 }
static GNUNET_THREAD_LOCAL int skip_log
Number of log calls to ignore.

◆ GNUNET_log_nocheck()

void GNUNET_log_nocheck ( enum GNUNET_ErrorType  kind,
const char *  message,
  ... 
)

Main log function.

Parameters
kindhow serious is the error?
messagewhat is the message (format string)
...arguments for format string

◆ GNUNET_log_from_nocheck()

void GNUNET_log_from_nocheck ( enum GNUNET_ErrorType  kind,
const char *  comp,
const char *  message,
  ... 
)

Log function that specifies an alternative component.

This function should be used by plugins.

Parameters
kindhow serious is the error?
compcomponent responsible for generating the message
messagewhat is the message (format string)
...arguments for format string

Definition at line 1076 of file common_logging.c.

References component_nopid, GNUNET_snprintf(), and mylog().

1080 {
1081  va_list va;
1082  char comp_w_pid[128];
1083 
1084  if (comp == NULL)
1085  comp = component_nopid;
1086 
1087  va_start (va, message);
1088  GNUNET_snprintf (comp_w_pid, sizeof(comp_w_pid), "%s-%d", comp, getpid ());
1089  mylog (kind, comp_w_pid, message, va);
1090  va_end (va);
1091 }
int GNUNET_snprintf(char *buf, size_t size, const char *format,...)
Like snprintf, just aborts if the buffer is of insufficient size.
static void mylog(enum GNUNET_ErrorType kind, const char *comp, const char *message, va_list va)
Output a log message using the default mechanism.
static char * component_nopid
Running component (without pid).
Here is the call graph for this function:

◆ GNUNET_log_config_missing()

void GNUNET_log_config_missing ( enum GNUNET_ErrorType  kind,
const char *  section,
const char *  option 
)

Log error message about missing configuration option.

Parameters
kindlog level
sectionsection with missing option
optionname of missing option

Definition at line 1454 of file common_logging.c.

References _, and GNUNET_log.

Referenced by database_setup(), get_bootstrap_server(), get_update_information_directory(), GNUNET_CONVERSATION_phone_create(), GNUNET_DATACACHE_create(), GNUNET_FRIENDS_parse(), GNUNET_FRIENDS_write_start(), GNUNET_RPS_connect(), GNUNET_TESTBED_run(), GSF_pending_request_init_(), LIBGNUNET_PLUGIN_TRANSPORT_INIT(), libgnunet_plugin_transport_tcp_init(), libgnunet_plugin_transport_unix_init(), load(), load_hostlist_file(), logger_run(), new_sub(), purge_cfg_dir(), read_index_list(), run(), save(), save_hostlist_file(), server_log(), setup_exit_helper_args(), start_arm_service(), and write_index_list().

1457 {
1458  GNUNET_log (kind,
1459  _ (
1460  "Configuration fails to specify option `%s' in section `%s'!\n"),
1461  option,
1462  section);
1463 }
#define _(String)
GNU gettext support macro.
Definition: platform.h:180
static char * section
Name of the section.
Definition: gnunet-config.c:33
static char * option
Name of the option.
Definition: gnunet-config.c:38
#define GNUNET_log(kind,...)
Here is the caller graph for this function:

◆ GNUNET_log_config_invalid()

void GNUNET_log_config_invalid ( enum GNUNET_ErrorType  kind,
const char *  section,
const char *  option,
const char *  required 
)

Log error message about invalid configuration option value.

Parameters
kindlog level
sectionsection with invalid option
optionname of invalid option
requiredwhat is required that is invalid about the option

Definition at line 1475 of file common_logging.c.

References _, and GNUNET_log.

Referenced by advertise_dns_exit(), GCD_init(), GNUNET_CLIENT_test(), GNUNET_CONFIGURATION_get_value_time(), GNUNET_GNS_lookup_with_tld(), GNUNET_TESTBED_run(), GSF_push_init_(), libgnunet_plugin_transport_udp_init(), read_service_conf(), run(), setup_exit_helper_args(), setup_service(), and test_service_configuration().

1479 {
1480  GNUNET_log (
1481  kind,
1482  _ (
1483  "Configuration specifies invalid value for option `%s' in section `%s': %s\n"),
1484  option,
1485  section,
1486  required);
1487 }
#define _(String)
GNU gettext support macro.
Definition: platform.h:180
static char * section
Name of the section.
Definition: gnunet-config.c:33
static char * option
Name of the option.
Definition: gnunet-config.c:38
#define GNUNET_log(kind,...)
Here is the caller graph for this function:

◆ GNUNET_abort_()

void GNUNET_abort_ ( void  )

Abort the process, generate a core dump if possible.

Most code should use GNUNET_assert (0) instead to first log the location of the failure.

Definition at line 279 of file common_logging.c.

280 {
281  abort ();
282 }

◆ GNUNET_log_skip()

void GNUNET_log_skip ( int  n,
int  check_reset 
)

Ignore the next n calls to the log function.

Parameters
nnumber of log calls to ignore (could be negative)
check_resetGNUNET_YES to assert that the log skip counter is currently zero

Ignore the next n calls to the log function.

Parameters
nnumber of log calls to ignore (could be negative)
check_resetGNUNET_YES to assert that the log skip counter is currently zero

Definition at line 922 of file common_logging.c.

References GNUNET_break, ok, and skip_log.

923 {
924  int ok;
925 
926  if (0 == n)
927  {
928  ok = (0 == skip_log);
929  skip_log = 0;
930  if (check_reset)
931  GNUNET_break (ok);
932  }
933  else
934  {
935  skip_log += n;
936  }
937 }
static int ok
Return value from 'main' (0 == success)
#define GNUNET_break(cond)
Use this for internal assertion violations that are not fatal (can be handled) but should not occur...
static GNUNET_THREAD_LOCAL int skip_log
Number of log calls to ignore.

◆ GNUNET_log_setup()

int GNUNET_log_setup ( const char *  comp,
const char *  loglevel,
const char *  logfile 
)

Setup logging.

Parameters
compdefault component to use
loglevelwhat types of messages should be logged
logfilechange logging to logfile (use NULL to keep stderr)
Returns
GNUNET_OK on success, GNUNET_SYSERR if logfile could not be opened
Parameters
compdefault component to use
loglevelwhat types of messages should be logged
logfilewhich file to write log messages to (can be NULL)
Returns
GNUNET_OK on success

Definition at line 708 of file common_logging.c.

References component, component_nopid, get_type(), getenv(), GNUNET_asprintf(), GNUNET_assert, GNUNET_free_non_null, GNUNET_OK, GNUNET_strdup, GNUNET_STRINGS_filename_expand(), GNUNET_SYSERR, log_file_name, min_level, parse_all_definitions(), setup_log_file(), and t.

Referenced by get_app(), GNUNET_PROGRAM_run2(), GNUNET_SERVICE_run_(), GNUNET_TESTING_service_run(), GNUNET_TRANSPORT_TESTING_main_(), LEGACY_SERVICE_run(), main(), run(), test_master(), and testbed_run().

709 {
710  const char *env_logfile;
711 
712  min_level = get_type (loglevel);
713 #if ! defined(GNUNET_CULL_LOGGING)
715 #endif
717  GNUNET_asprintf (&component, "%s-%d", comp, getpid ());
720 
721  env_logfile = getenv ("GNUNET_FORCE_LOGFILE");
722  if ((NULL != env_logfile) && (strlen (env_logfile) > 0))
723  logfile = env_logfile;
724  if (NULL == logfile)
725  return GNUNET_OK;
728  if (NULL == log_file_name)
729  return GNUNET_SYSERR;
730 #if defined(GNUNET_CULL_LOGGING)
731  /* log file option not allowed for wallet logic */
732  GNUNET_assert (NULL == logfile);
733  return GNUNET_OK;
734 #else
735  {
736  time_t t;
737  const struct tm *tm;
738 
739  t = time (NULL);
740  tm = gmtime (&t);
741  return setup_log_file (tm);
742  }
743 #endif
744 }
#define GNUNET_assert(cond)
Use this for fatal errors that cannot be handled.
static char * log_file_name
Format string describing the name of the log file.
#define GNUNET_OK
Named constants for return values.
Definition: gnunet_common.h:83
#define GNUNET_free_non_null(ptr)
Free the memory pointed to by ptr if ptr is not NULL.
static struct GNUNET_SCHEDULER_Task * t
Main task.
#define GNUNET_strdup(a)
Wrapper around GNUNET_xstrdup_.
static char * component
Running component.
static void parse_all_definitions()
Utility function - parses GNUNET_LOG and GNUNET_FORCE_LOG.
int GNUNET_asprintf(char **buf, const char *format,...)
Like asprintf, just portable.
#define GNUNET_SYSERR
Definition: gnunet_common.h:84
char * GNUNET_STRINGS_filename_expand(const char *fil)
Complete filename (a la shell) from abbrevition.
Definition: strings.c:603
char * getenv()
static int setup_log_file(const struct tm *tm)
Setup the log file.
static enum GNUNET_ErrorType get_type(const char *log)
Convert a textual description of a loglevel to the respective GNUNET_GE_KIND.
static enum GNUNET_ErrorType min_level
Minimum log level.
static char * component_nopid
Running component (without pid).
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GNUNET_logger_add()

void GNUNET_logger_add ( GNUNET_Logger  logger,
void *  logger_cls 
)

Add a custom logger.

Note that installing any custom logger will disable the standard logger. When multiple custom loggers are installed, all will be called. The standard logger will only be used if no custom loggers are present.

Parameters
loggerlog function
logger_clsclosure for logger

Definition at line 757 of file common_logging.c.

References GNUNET_new, CustomLogger::logger, CustomLogger::logger_cls, loggers, and CustomLogger::next.

758 {
759  struct CustomLogger *entry;
760 
761  entry = GNUNET_new (struct CustomLogger);
762  entry->logger = logger;
763  entry->logger_cls = logger_cls;
764  entry->next = loggers;
765  loggers = entry;
766 }
struct CustomLogger * next
This is a linked list.
void * logger_cls
Closure for logger.
#define GNUNET_new(type)
Allocate a struct or union of the given type.
Linked list of active loggers.
static struct CustomLogger * loggers
Linked list of our custom loggres.
GNUNET_Logger logger
Log function.

◆ GNUNET_logger_remove()

void GNUNET_logger_remove ( GNUNET_Logger  logger,
void *  logger_cls 
)

Remove a custom logger.

Parameters
loggerlog function
logger_clsclosure for logger

Definition at line 776 of file common_logging.c.

References GNUNET_assert, GNUNET_free, CustomLogger::logger, CustomLogger::logger_cls, loggers, and CustomLogger::next.

777 {
778  struct CustomLogger *pos;
779  struct CustomLogger *prev;
780 
781  prev = NULL;
782  pos = loggers;
783  while ((NULL != pos) &&
784  ((pos->logger != logger) || (pos->logger_cls != logger_cls)))
785  {
786  prev = pos;
787  pos = pos->next;
788  }
789  GNUNET_assert (NULL != pos);
790  if (NULL == prev)
791  loggers = pos->next;
792  else
793  prev->next = pos->next;
794  GNUNET_free (pos);
795 }
struct CustomLogger * next
This is a linked list.
#define GNUNET_assert(cond)
Use this for fatal errors that cannot be handled.
void * logger_cls
Closure for logger.
Linked list of active loggers.
static struct CustomLogger * loggers
Linked list of our custom loggres.
#define GNUNET_free(ptr)
Wrapper around free.
GNUNET_Logger logger
Log function.

◆ GNUNET_sh2s()

const char * GNUNET_sh2s ( const struct GNUNET_ShortHashCode shc)

Convert a short hash value to a string (for printing debug messages).

This is one of the very few calls in the entire API that is NOT reentrant!

Parameters
shcthe hash code
Returns
string

Definition at line 1255 of file common_logging.c.

References buf, and GNUNET_STRINGS_data_to_string().

Referenced by destroy_route(), discard_all_from_rung_tail(), dv_setup_key_state_from_km(), GCC_2s(), GCC_handle_kx(), GCC_handle_kx_auth(), handle_connection_broken(), handle_connection_create(), handle_connection_create_ack(), handle_connection_destroy(), handle_tunnel_kx(), handle_validation_challenge(), handle_validation_response(), mqm_execute(), route_message(), send_broken(), send_kx(), send_kx_auth(), start_address_validation(), start_dv_learn(), and validation_transmit_on_queue().

1256 {
1257  static char buf[64];
1258 
1259  GNUNET_STRINGS_data_to_string (shc, sizeof(*shc), buf, sizeof(buf));
1260  buf[6] = '\0';
1261  return (const char *) buf;
1262 }
static char buf[2048]
char * GNUNET_STRINGS_data_to_string(const void *data, size_t size, char *out, size_t out_size)
Convert binary data to ASCII encoding using CrockfordBase32.
Definition: strings.c:856
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GNUNET_uuid2s()

const char * GNUNET_uuid2s ( const struct GNUNET_Uuid uuid)

Convert a UUID to a string (for printing debug messages).

This is one of the very few calls in the entire API that is NOT reentrant!

Parameters
uuidthe UUID
Returns
string

Definition at line 1275 of file common_logging.c.

References buf, and GNUNET_STRINGS_data_to_string().

Referenced by cummulative_ack(), handle_reliability_ack(), handle_reliability_box(), and prepare_pending_acknowledgement().

1276 {
1277  static char buf[32];
1278 
1279  GNUNET_STRINGS_data_to_string (uuid, sizeof(*uuid), buf, sizeof(buf));
1280  buf[6] = '\0';
1281  return (const char *) buf;
1282 }
static char buf[2048]
char * GNUNET_STRINGS_data_to_string(const void *data, size_t size, char *out, size_t out_size)
Convert binary data to ASCII encoding using CrockfordBase32.
Definition: strings.c:856
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GNUNET_h2s()

const char* GNUNET_h2s ( const struct GNUNET_HashCode hc)

Convert a hash value to a string (for printing debug messages).

This is one of the very few calls in the entire API that is NOT reentrant!

Parameters
hcthe hash code
Returns
string

Convert a hash value to a string (for printing debug messages).

Parameters
hcthe hash code
Returns
string form; will be overwritten by next call to GNUNET_h2s.

Definition at line 1126 of file common_logging.c.

References GNUNET_CRYPTO_HashAsciiEncoded::encoding, GNUNET_CRYPTO_hash_to_enc(), and GNUNET_THREAD_LOCAL.

Referenced by add_get_request_to_pending(), advertise_dns_exit(), block_proc(), cb_channel_destruction(), cb_intersection_element_removed(), check_edge(), clean_request(), client_release_ports(), client_request_complete_alice(), client_response_handler(), create_channel_to_destination(), datacache_get_iterator(), delayed_get(), delayed_put(), derive_aes_key(), derive_auth_key(), derive_iv(), derive_pong_iv(), dht_get_string_accept_handler(), dht_get_string_handler(), diffname(), do_rekey(), dv_setup_key_state_from_km(), env_delete_notify(), execute_add(), execute_select(), expired_processor(), filter_all(), filtered_map_initialization(), forward_reply(), GCCH_2s(), GCCH_bind(), GCCH_channel_incoming_new(), GCCH_channel_local_new(), GCCH_hash_port(), GDS_CLIENTS_handle_reply(), GDS_DATACACHE_handle_get(), GDS_DATACACHE_handle_put(), GDS_NEIGHBOURS_handle_get(), GDS_NEIGHBOURS_handle_put(), GDS_NEIGHBOURS_handle_reply(), get_target_peers(), GNUNET_CADET_channel_create(), GNUNET_CADET_open_port(), GNUNET_DATACACHE_get(), GNUNET_DATACACHE_get_closest(), GNUNET_DATACACHE_put(), GNUNET_DATASTORE_get_key(), GNUNET_DATASTORE_put(), GNUNET_DATASTORE_remove(), GNUNET_DHT_get_start(), GNUNET_DHT_get_stop(), GNUNET_DHT_put(), GNUNET_FS_add_to_index(), GNUNET_FS_handle_on_demand_block(), GNUNET_FS_tree_encoder_next(), GNUNET_NAMECACHE_lookup_block(), GNUNET_SET_listen(), GNUNET_SET_listen_cancel(), GSC_bind(), GSC_KX_encrypt_and_transmit(), GSC_KX_init(), GSF_cadet_query(), GSF_cadet_query_cancel(), GSF_pending_request_create_(), GSF_pending_request_get_message_(), GSF_plan_add_(), handle_bob_client_message(), handle_channel_create(), handle_channel_created(), handle_client_evaluate(), handle_client_join(), handle_client_listen(), handle_client_redirect_to_service(), handle_client_register_message(), handle_client_reject(), handle_client_start_search(), handle_client_unindex(), handle_data(), handle_datastore_reply(), handle_dht_local_get(), handle_dht_local_get_stop(), handle_dht_local_put(), handle_dht_p2p_get(), handle_dht_p2p_put(), handle_dht_p2p_result(), handle_dht_reply(), handle_encrypted(), handle_ephemeral_key(), handle_get_key(), handle_icmp_service(), handle_incoming_msg(), handle_local_result(), handle_namecache_block_response(), handle_p2p_get(), handle_p2p_put(), handle_p2p_reply(), handle_plaintext_channel_open(), handle_port_close(), handle_port_open(), handle_put(), handle_query_message(), handle_remove(), handle_reply(), handle_request(), handle_tcp_service(), handle_udp_service(), handle_union_p2p_demand(), handle_union_p2p_elements(), handle_union_p2p_full_element(), handle_union_p2p_offer(), hash_for_index_cb(), hash_for_index_val(), initialize_map_unfiltered(), iterate_initial_edge(), iterator_bf_create(), iterator_bf_reduce(), load_state(), lookup_task(), mysql_plugin_put(), mysql_plugin_remove_key(), namecache_sqlite_cache_block(), new_element_cb(), perform_dht_put(), plan(), postgres_plugin_get_random(), prepare_client_end_notification(), prepare_ibf_iterator(), print_channel_destination(), print_edge(), print_indexed(), process(), process_client_result(), process_dht_put_content(), process_local_reply(), process_migration_content(), process_reply(), process_result_with_request(), put_cb(), put_continuation(), quota_processor(), regex_find_path(), REGEX_INTERNAL_iterate_all_edges(), REGEX_INTERNAL_search(), regex_iterator(), regex_next_edge(), REGEX_TEST_automaton_save_graph_step(), remove_by_unique_id(), remove_continuation(), requester_callback(), responder_callback(), route_packet(), run(), schedule_block_download(), select_peer(), send_full_element_iterator(), send_key(), send_offers_iterator(), send_remaining_elements(), set_result_cb(), sqlite_plugin_get(), sqlite_plugin_get_closest(), sqlite_plugin_get_random(), sqlite_plugin_put(), start_intersection(), start_local_query(), start_p2p_processing(), store_service(), timeout_closed_cb(), transmit_client_response(), transmit_item(), transmit_pending(), transmit_request(), and write_item().

1127 {
1129 
1131  ret.encoding[8] = '\0';
1132  return (const char *) ret.encoding;
1133 }
#define GNUNET_THREAD_LOCAL
Definition: platform.h:255
static int ret
Return value of the commandline.
Definition: gnunet-abd.c:81
void GNUNET_CRYPTO_hash_to_enc(const struct GNUNET_HashCode *block, struct GNUNET_CRYPTO_HashAsciiEncoded *result)
Convert hash to ASCII encoding.
Definition: crypto_hash.c:73
0-terminated ASCII encoding of a struct GNUNET_HashCode.
Here is the call graph for this function:

◆ GNUNET_h2s2()

const char* GNUNET_h2s2 ( const struct GNUNET_HashCode hc)

Convert a hash value to a string (for printing debug messages).

This is one of the very few calls in the entire API that is NOT reentrant! Identical to GNUNET_h2s(), except that another buffer is used so both GNUNET_h2s() and GNUNET_h2s2() can be used within the same log statement.

Parameters
hcthe hash code
Returns
string

Convert a hash value to a string (for printing debug messages).

This is one of the very few calls in the entire API that is NOT reentrant! Identical to GNUNET_h2s(), except that another buffer is used so both GNUNET_h2s() and GNUNET_h2s2() can be used within the same log statement.

Parameters
hcthe hash code
Returns
string form; will be overwritten by next call to GNUNET_h2s.

Definition at line 1147 of file common_logging.c.

References GNUNET_CRYPTO_HashAsciiEncoded::encoding, and GNUNET_CRYPTO_hash_to_enc().

Referenced by GSC_KX_encrypt_and_transmit(), and handle_encrypted().

1148 {
1149  static struct GNUNET_CRYPTO_HashAsciiEncoded ret;
1150 
1152  ret.encoding[8] = '\0';
1153  return (const char *) ret.encoding;
1154 }
static int ret
Return value of the commandline.
Definition: gnunet-abd.c:81
void GNUNET_CRYPTO_hash_to_enc(const struct GNUNET_HashCode *block, struct GNUNET_CRYPTO_HashAsciiEncoded *result)
Convert hash to ASCII encoding.
Definition: crypto_hash.c:73
0-terminated ASCII encoding of a struct GNUNET_HashCode.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GNUNET_h2s_full()

const char* GNUNET_h2s_full ( const struct GNUNET_HashCode hc)

Convert a hash value to a string (for printing debug messages).

This prints all 104 characters of a hashcode! This is one of the very few calls in the entire API that is NOT reentrant!

Parameters
hcthe hash code
Returns
string

Convert a hash value to a string (for printing debug messages).

This is one of the very few calls in the entire API that is NOT reentrant!

Parameters
hcthe hash code
Returns
string form; will be overwritten by next call to GNUNET_h2s_full.

Definition at line 1294 of file common_logging.c.

References GNUNET_CRYPTO_HashAsciiEncoded::encoding, GNUNET_CRYPTO_hash_to_enc(), and ret.

Referenced by forward_reply(), get_callback(), get_resp_callback(), handle_dht_local_get(), handle_dht_local_put(), handle_dht_p2p_put(), namecache_cache_block(), namecache_lookup_block(), namecache_sqlite_cache_block(), namecache_sqlite_lookup_block(), new_sub(), put_callback(), and run().

1295 {
1296  static struct GNUNET_CRYPTO_HashAsciiEncoded ret;
1297 
1299  ret.encoding[sizeof(ret) - 1] = '\0';
1300  return (const char *) ret.encoding;
1301 }
static int ret
Return value of the commandline.
Definition: gnunet-abd.c:81
void GNUNET_CRYPTO_hash_to_enc(const struct GNUNET_HashCode *block, struct GNUNET_CRYPTO_HashAsciiEncoded *result)
Convert hash to ASCII encoding.
Definition: crypto_hash.c:73
0-terminated ASCII encoding of a struct GNUNET_HashCode.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GNUNET_p2s()

const char * GNUNET_p2s ( const struct GNUNET_CRYPTO_EddsaPublicKey p)

Convert a public key value to a string (for printing debug messages).

This is one of the very few calls in the entire API that is NOT reentrant!

Parameters
hcthe hash code
Returns
string

Definition at line 1167 of file common_logging.c.

References GNUNET_CRYPTO_HashAsciiEncoded::encoding, GNUNET_CRYPTO_hash(), and GNUNET_CRYPTO_hash_to_enc().

1168 {
1169  static struct GNUNET_CRYPTO_HashAsciiEncoded ret;
1170  struct GNUNET_HashCode hc;
1171 
1172  GNUNET_CRYPTO_hash (p, sizeof(*p), &hc);
1174  ret.encoding[6] = '\0';
1175  return (const char *) ret.encoding;
1176 }
static int ret
Return value of the commandline.
Definition: gnunet-abd.c:81
void GNUNET_CRYPTO_hash(const void *block, size_t size, struct GNUNET_HashCode *ret)
Compute hash of a given block.
Definition: crypto_hash.c:48
A 512-bit hashcode.
void GNUNET_CRYPTO_hash_to_enc(const struct GNUNET_HashCode *block, struct GNUNET_CRYPTO_HashAsciiEncoded *result)
Convert hash to ASCII encoding.
Definition: crypto_hash.c:73
0-terminated ASCII encoding of a struct GNUNET_HashCode.
Here is the call graph for this function:

◆ GNUNET_p2s2()

const char * GNUNET_p2s2 ( const struct GNUNET_CRYPTO_EddsaPublicKey p)

Convert a public key value to a string (for printing debug messages).

This is one of the very few calls in the entire API that is NOT reentrant!

Parameters
hcthe hash code
Returns
string

Definition at line 1189 of file common_logging.c.

References GNUNET_CRYPTO_HashAsciiEncoded::encoding, GNUNET_CRYPTO_hash(), and GNUNET_CRYPTO_hash_to_enc().

1190 {
1191  static struct GNUNET_CRYPTO_HashAsciiEncoded ret;
1192  struct GNUNET_HashCode hc;
1193 
1194  GNUNET_CRYPTO_hash (p, sizeof(*p), &hc);
1196  ret.encoding[6] = '\0';
1197  return (const char *) ret.encoding;
1198 }
static int ret
Return value of the commandline.
Definition: gnunet-abd.c:81
void GNUNET_CRYPTO_hash(const void *block, size_t size, struct GNUNET_HashCode *ret)
Compute hash of a given block.
Definition: crypto_hash.c:48
A 512-bit hashcode.
void GNUNET_CRYPTO_hash_to_enc(const struct GNUNET_HashCode *block, struct GNUNET_CRYPTO_HashAsciiEncoded *result)
Convert hash to ASCII encoding.
Definition: crypto_hash.c:73
0-terminated ASCII encoding of a struct GNUNET_HashCode.
Here is the call graph for this function:

◆ GNUNET_e2s()

const char * GNUNET_e2s ( const struct GNUNET_CRYPTO_EcdhePublicKey p)

Convert a public key value to a string (for printing debug messages).

This is one of the very few calls in the entire API that is NOT reentrant!

Parameters
hcthe hash code
Returns
string

Definition at line 1211 of file common_logging.c.

References GNUNET_CRYPTO_HashAsciiEncoded::encoding, GNUNET_CRYPTO_hash(), and GNUNET_CRYPTO_hash_to_enc().

Referenced by GCC_handle_kx(), GCC_handle_kx_auth(), GCT_handle_kx(), GCT_handle_kx_auth(), handle_tunnel_kx(), mqm_execute(), send_kx(), and send_kx_auth().

1212 {
1213  static struct GNUNET_CRYPTO_HashAsciiEncoded ret;
1214  struct GNUNET_HashCode hc;
1215 
1216  GNUNET_CRYPTO_hash (p, sizeof(*p), &hc);
1218  ret.encoding[6] = '\0';
1219  return (const char *) ret.encoding;
1220 }
static int ret
Return value of the commandline.
Definition: gnunet-abd.c:81
void GNUNET_CRYPTO_hash(const void *block, size_t size, struct GNUNET_HashCode *ret)
Compute hash of a given block.
Definition: crypto_hash.c:48
A 512-bit hashcode.
void GNUNET_CRYPTO_hash_to_enc(const struct GNUNET_HashCode *block, struct GNUNET_CRYPTO_HashAsciiEncoded *result)
Convert hash to ASCII encoding.
Definition: crypto_hash.c:73
0-terminated ASCII encoding of a struct GNUNET_HashCode.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GNUNET_e2s2()

const char * GNUNET_e2s2 ( const struct GNUNET_CRYPTO_EcdhePublicKey p)

Convert a public key value to a string (for printing debug messages).

This is one of the very few calls in the entire API that is NOT reentrant!

Parameters
hcthe hash code
Returns
string

Definition at line 1233 of file common_logging.c.

References GNUNET_CRYPTO_HashAsciiEncoded::encoding, GNUNET_CRYPTO_hash(), and GNUNET_CRYPTO_hash_to_enc().

1234 {
1235  static struct GNUNET_CRYPTO_HashAsciiEncoded ret;
1236  struct GNUNET_HashCode hc;
1237 
1238  GNUNET_CRYPTO_hash (p, sizeof(*p), &hc);
1240  ret.encoding[6] = '\0';
1241  return (const char *) ret.encoding;
1242 }
static int ret
Return value of the commandline.
Definition: gnunet-abd.c:81
void GNUNET_CRYPTO_hash(const void *block, size_t size, struct GNUNET_HashCode *ret)
Compute hash of a given block.
Definition: crypto_hash.c:48
A 512-bit hashcode.
void GNUNET_CRYPTO_hash_to_enc(const struct GNUNET_HashCode *block, struct GNUNET_CRYPTO_HashAsciiEncoded *result)
Convert hash to ASCII encoding.
Definition: crypto_hash.c:73
0-terminated ASCII encoding of a struct GNUNET_HashCode.
Here is the call graph for this function:

◆ GNUNET_i2s()

const char* GNUNET_i2s ( const struct GNUNET_PeerIdentity pid)

Convert a peer identity to a string (for printing debug messages).

This is one of the very few calls in the entire API that is NOT reentrant!

Parameters
pidthe peer identity
Returns
string form of the pid; will be overwritten by next call to GNUNET_i2s().
Parameters
pidthe peer identity
Returns
string form of the pid; will be overwritten by next call to GNUNET_i2s.

Definition at line 1312 of file common_logging.c.

References buf, GNUNET_CRYPTO_eddsa_public_key_to_string(), GNUNET_free, GNUNET_strlcpy(), GNUNET_THREAD_LOCAL, GNUNET_PeerIdentity::public_key, and ret.

Referenced by activate_core_visible_dv_path(), add_host_to_known_hosts(), add_known_to_bloom(), add_revocation(), add_to_tc(), add_valid_address(), addr_info_cb(), adjust_running_peers(), age_values(), ats_perf_mon_cb(), ats_performance_info_cb(), ats_request_address_change(), attempt_connect(), attempt_connect_task(), backtalker_monotime_cb(), bandwidth_changed_cb(), blacklist_cb(), blacklist_cfg_iter(), broadcast_mst_cb(), cache_transport_peer_connect_notify(), cadet_mq_send_now(), cadet_timeout(), cb_channel_destruction(), cb_channel_incoming(), cb_intersection_request_alice(), check_access(), check_hello(), check_info(), check_peer_online(), check_peer_pull_reply(), check_vl_transmission(), churn_cb(), clean_peer(), client_connect(), client_delete_session(), client_disconnect_cb(), client_receive(), client_receive_mst_cb(), client_run(), client_send_response(), clients_notify_stream_peer(), comm_connect_cb(), comm_disconnect_cb(), compute_diversity(), connect_bl_check_cont(), connect_cb(), connect_handler(), connect_notify(), consider_for_advertising(), consider_sending_fc(), core_connect_cb(), core_disconnect_cb(), core_init(), core_mq_send_impl(), cores_send_connect_info(), cores_send_disconnect_info(), create_channel_to_destination(), create_session(), cummulative_ack(), database_setup(), decrypt_new_element(), default_reply_handle(), delayed_disconnect(), deliver_message(), derive_aes_key(), derive_iv(), derive_pong_iv(), destroy_ai(), destroy_peer(), destroy_route(), disconnect_all_neighbours(), disconnect_neighbour(), disconnect_notify(), distribute_bandwidth(), do_blacklist_check(), do_connect(), do_decrypt(), do_encrypt(), do_flood(), do_restart_typemap_message(), do_round(), do_send(), do_transmit(), encapsulate_for_dv(), evaluate(), extract_box_cb(), forward_dv_box(), forward_dv_learn(), fragment_message(), free_matching_requests(), free_neighbour(), GAS_addresses_add(), GAS_addresses_destroy(), GAS_addresses_get_peer_info(), GAS_addresses_update(), GAS_handle_preference_change(), GAS_handle_request_address_cancel(), GAS_normalization_update_property(), GAS_proportional_address_add(), GAS_proportional_address_delete(), GAS_scheduling_transmit_address_suggestion(), GCCH_2s(), GCD_search(), GCPP_2s(), GCT_2s(), GCT_handle_kx(), GDS_NEIGHBOURS_handle_get(), GDS_NEIGHBOURS_handle_put(), GDS_NEIGHBOURS_handle_reply(), get_cadet(), get_channel(), get_hello(), get_result_iterator(), GNUNET_ATS_address_destroy(), GNUNET_ATS_address_update(), GNUNET_ATS_connectivity_suggest(), GNUNET_ATS_connectivity_suggest_cancel(), GNUNET_ATS_TEST_generate_preferences_start(), GNUNET_ATS_TEST_generate_traffic_start(), GNUNET_CADET_channel_create(), GNUNET_PEERINFO_add_peer(), GNUNET_PEERSTORE_store(), GNUNET_PEERSTORE_watch(), GNUNET_RPS_seed_ids(), GNUNET_STRINGS_pp2s(), GNUNET_TRANSPORT_address_to_string(), GNUNET_TRANSPORT_application_suggest(), GNUNET_TRANSPORT_application_suggest_cancel(), GNUNET_TRANSPORT_application_validate(), GNUNET_TRANSPORT_core_get_mq(), GNUNET_TRANSPORT_TESTING_log_connect(), GNUNET_TRANSPORT_TESTING_log_disconnect(), GNUNET_TRANSPORT_TESTING_restart_peer(), GNUNET_TRANSPORT_TESTING_send(), GNUNET_TRANSPORT_TESTING_stop_peer(), got_hello(), GSC_CLIENTS_deliver_message(), GSC_CLIENTS_notify_client_about_neighbour(), GSC_CLIENTS_solicit_request(), GSC_KX_encrypt_and_transmit(), GSC_SESSIONS_confirm_typemap(), GSC_SESSIONS_create(), GSC_SESSIONS_end(), GSC_SESSIONS_set_typemap(), GSC_SESSIONS_solicit(), GSF_cadet_query(), GSF_cadet_query_cancel(), GSF_cadet_release_clients(), GSF_peer_connect_handler(), GSF_plan_add_(), GSF_push_start_(), GST_ats_add_address(), GST_ats_add_inbound_address(), GST_ats_block_address(), GST_ats_del_session(), GST_ats_expire_address(), GST_ats_new_session(), GST_ats_update_delay(), GST_ats_update_distance(), GST_ats_update_utilization(), GST_blacklist_add_peer(), GST_blacklist_test_allowed(), GST_manipulation_recv(), GST_manipulation_send(), GST_manipulation_set_metric(), GST_neighbours_force_disconnect(), GST_neighbours_handle_disconnect_message(), GST_neighbours_handle_quota_message(), GST_neighbours_handle_session_ack(), GST_neighbours_handle_session_syn(), GST_neighbours_handle_session_syn_ack(), GST_neighbours_keepalive(), GST_neighbours_keepalive_response(), GST_neighbours_send(), GST_neighbours_session_terminated(), GST_neighbours_switch_to_address(), GST_receive_callback(), GST_validation_handle_address(), GST_validation_handle_hello(), GST_validation_handle_ping(), GST_validation_handle_pong(), handle_add_queue_message(), handle_address_list(), handle_ats_address_suggestion(), handle_backchannel_encapsulation(), handle_channel_create(), handle_client_blacklist_reply(), handle_client_monitor_peers(), handle_client_redirect_to_service(), handle_client_seed(), handle_client_send(), handle_client_send_request(), handle_client_start(), handle_communicator_backchannel(), handle_connect(), handle_connect_notify(), handle_connection_create(), handle_core_connect(), handle_core_disconnect(), handle_del_queue_message(), handle_dht_p2p_get(), handle_dht_p2p_put(), handle_dht_p2p_result(), handle_disconnect(), handle_disconnect_notify(), handle_dv_box(), handle_dv_learn(), handle_encrypted(), handle_ephemeral_key(), handle_feedback(), handle_flow_control(), handle_fragment_box(), handle_friend(), handle_get(), handle_gns_resolution_result(), handle_hello(), handle_helper_message(), handle_icmp_remote(), handle_icmp_service(), handle_inbound_channel(), handle_incoming_msg(), handle_init_reply(), handle_iterate(), handle_local_ack(), handle_local_data(), handle_notification(), handle_notify_inbound(), handle_p2p_estimate(), handle_p2p_get(), handle_p2p_migration_stop(), handle_p2p_put(), handle_peer_check(), handle_peer_pull_reply(), handle_peer_pull_request(), handle_peer_push(), handle_ping(), handle_pong(), handle_raw_message(), handle_recv(), handle_regex_result(), handle_reliability_ack(), handle_reliability_box(), handle_remote_overlay_connect(), handle_reply(), handle_revocation_union_request(), handle_search_response(), handle_send_message_ack(), handle_send_ok(), handle_send_ready(), handle_send_transmit_continuation(), handle_set_quota(), handle_store(), handle_suggest(), handle_tcp_data(), handle_tcp_remote(), handle_tcp_service(), handle_tcp_welcome(), handle_transport_notify_connect(), handle_transport_notify_disconnect(), handle_transport_notify_excess_bw(), handle_udp_remote(), handle_udp_service(), handle_validation_response(), hello_update_cb(), host_processor(), hosts_directory_scan_callback(), http_client_plugin_get_session(), http_client_plugin_peer_disconnect(), http_client_plugin_send(), http_server_plugin_disconnect_peer(), http_server_plugin_send(), inbound_bw_tracker_update(), info_cb(), init_peer_cb(), insert_in_sampler(), keygen_round1_new_element(), keygen_round2_new_element(), learn_dv_path(), main_init(), mal_pre(), manage_service_wrapper(), master_task(), monitor_cb(), monitor_notify_connect(), monitor_notify_disconnect(), mq_error(), mq_init(), mq_online_check_successful(), mq_send_impl(), nat_connect_timeout(), neighbour_delete(), neighbours_changed_notification(), neighbours_connect_notification(), neighbours_disconnect_notification(), new_channel(), new_service_channel(), notify_all(), notify_client_connect_info(), notify_connect(), notify_disconnect(), notify_excess_cb(), occ_cache_get_handle_ats_occ_cb(), occ_cache_get_handle_core_cb(), occ_hello_sent_cb(), offer_hello(), operation_timeout(), overlay_connect_notify(), p1_transport_connect_cache_callback(), p2_transport_connect(), p2_transport_connect_cache_callback(), path_callback(), peer_id_cb(), peerinfo_it(), peerinformation_cb(), peerstore_flat_store_record(), plugin_env_session_end(), plugin_env_session_start(), plugin_session_info_cb(), print_channel_destination(), print_info(), print_peer_list(), print_plugin_event_info(), print_view_sizes(), process_data(), process_migration_content(), process_payload(), process_peer_iteration_cb(), process_peer_string(), process_peerinfo_hello(), process_peerinfo_peers(), process_resolved_address(), profiler_reply_handle(), profiler_reply_handle_info(), qc_fragment_sent(), queue_destroy(), queue_send_msg(), read_process_ack(), receiver_destroy(), reliability_box_message(), rem_from_list(), remove_timeout_messages_and_select(), req_addr_peerinfo_it(), requester_callback(), reset_cadet(), rocc_cache_get_handle_transport_cb(), rocc_hello_sent_cb(), route_control_message_without_fc(), route_message(), route_packet(), route_via_neighbour(), RPS_sampler_elem_next(), run(), schedule_select_v4(), schedule_select_v6(), schedule_transmit_on_queue(), seed_peers(), select_peer(), select_write_cb(), send_add_address_message(), send_broken(), send_disconnect(), send_hello(), send_hello_thru_rocc(), send_ic_request(), send_keep_alive(), send_keepalive(), send_key(), send_message(), send_outbound_quota_to_clients(), send_peer_information(), send_pull_reply(), send_pull_request(), send_push(), send_session_ack_message(), send_session_syn_ack_cont(), send_session_syn_cont(), send_syn(), send_syn_ack_message(), send_utilization_data(), server_access_cb(), server_delete_session(), server_disconnect_cb(), server_lookup_connection(), server_receive_mst_cb(), server_send_callback(), set_alternative_address(), set_incoming_quota(), set_peer_online(), set_primary_address(), set_state_and_timeout(), setup_neighbour(), solver_bandwidth_changed_cb(), start_address_validation(), start_cb(), suggest_to_connect(), switch_address_bl_check_cont(), tcp_plugin_disconnect(), tcp_plugin_disconnect_session(), tcp_plugin_get_session(), tcp_plugin_send(), test_blacklisted(), tokenized_cb(), transmit_cummulative_ack_cb(), transmit_on_queue(), transmit_pending(), transmit_ping_if_allowed(), transmit_send_continuation(), transmit_task_cb(), transmit_typemap_task(), transport_addr_to_str_cb(), try_transmission(), udp_disconnect(), udp_disconnect_session(), udp_plugin_create_session(), udp_plugin_lookup_session(), udp_plugin_send(), udp_select_send(), unblock_address(), unix_plugin_send(), unix_plugin_session_disconnect(), update_active_address(), update_hello(), update_preference(), update_rel_sum(), update_relative_values_for_peer(), valid_peers_iterator(), validation_transmit_on_queue(), view_update_cb(), wlan_plugin_get_session(), wlan_plugin_send(), and write_final_stats().

1313 {
1314  static GNUNET_THREAD_LOCAL char buf[5];
1315  char *ret;
1316 
1317  if (NULL == pid)
1318  return "NULL";
1320  GNUNET_strlcpy (buf, ret, sizeof(buf));
1321  GNUNET_free (ret);
1322  return buf;
1323 }
#define GNUNET_THREAD_LOCAL
Definition: platform.h:255
static int ret
Return value of the commandline.
Definition: gnunet-abd.c:81
char * GNUNET_CRYPTO_eddsa_public_key_to_string(const struct GNUNET_CRYPTO_EddsaPublicKey *pub)
Convert a public key to a string.
Definition: crypto_ecc.c:256
static char buf[2048]
size_t GNUNET_strlcpy(char *dst, const char *src, size_t n)
Like strlcpy but portable.
Definition: strings.c:219
#define GNUNET_free(ptr)
Wrapper around free.
struct GNUNET_CRYPTO_EddsaPublicKey public_key
Here is the call graph for this function:

◆ GNUNET_i2s2()

const char* GNUNET_i2s2 ( const struct GNUNET_PeerIdentity pid)

Convert a peer identity to a string (for printing debug messages).

This is one of the very few calls in the entire API that is NOT reentrant! Identical to GNUNET_i2s(), except that another buffer is used so both GNUNET_i2s() and GNUNET_i2s2() can be used within the same log statement.

Parameters
pidthe peer identity
Returns
string form of the pid; will be overwritten by next call to GNUNET_i2s().

Identical to GNUNET_i2s(), except that another buffer is used so both GNUNET_i2s() and GNUNET_i2s2() can be used within the same log statement.

Parameters
pidthe peer identity
Returns
string form of the pid; will be overwritten by next call to GNUNET_i2s.

Definition at line 1337 of file common_logging.c.

References buf, GNUNET_CRYPTO_eddsa_public_key_to_string(), GNUNET_free, GNUNET_strlcpy(), GNUNET_THREAD_LOCAL, GNUNET_PeerIdentity::public_key, and ret.

Referenced by derive_aes_key(), destroy_route(), forward_dv_learn(), handle_dv_box(), handle_ping(), and send_broken().

1338 {
1339  static GNUNET_THREAD_LOCAL char buf[5];
1340  char *ret;
1341 
1342  if (NULL == pid)
1343  return "NULL";
1345  GNUNET_strlcpy (buf, ret, sizeof(buf));
1346  GNUNET_free (ret);
1347  return buf;
1348 }
#define GNUNET_THREAD_LOCAL
Definition: platform.h:255
static int ret
Return value of the commandline.
Definition: gnunet-abd.c:81
char * GNUNET_CRYPTO_eddsa_public_key_to_string(const struct GNUNET_CRYPTO_EddsaPublicKey *pub)
Convert a public key to a string.
Definition: crypto_ecc.c:256
static char buf[2048]
size_t GNUNET_strlcpy(char *dst, const char *src, size_t n)
Like strlcpy but portable.
Definition: strings.c:219
#define GNUNET_free(ptr)
Wrapper around free.
struct GNUNET_CRYPTO_EddsaPublicKey public_key
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GNUNET_i2s_full()

const char* GNUNET_i2s_full ( const struct GNUNET_PeerIdentity pid)

Convert a peer identity to a string (for printing debug messages).

This is one of the very few calls in the entire API that is NOT reentrant!

Parameters
pidthe peer identity
Returns
string form of the pid; will be overwritten by next call to GNUNET_i2s_full().
Parameters
pidthe peer identity
Returns
string form of the pid; will be overwritten by next call to GNUNET_i2s_full.

Definition at line 1359 of file common_logging.c.

References buf, GNUNET_CRYPTO_eddsa_public_key_to_string(), GNUNET_free, GNUNET_THREAD_LOCAL, GNUNET_PeerIdentity::public_key, and ret.

Referenced by channel_incoming(), client_connect(), do_round(), dump_pc(), get_host_filename(), get_idx_of_pid(), gns_value_to_string(), GNUNET_TRANSPORT_TESTING_start_peer(), GST_validation_handle_ping(), handle_ephemeral_key(), hist_update(), info_cb(), operation_timeout(), peers_callback(), print_peer_info(), profiler_reply_handle(), profiler_reply_handle_info(), read_blacklist_configuration(), reply_handle(), restore_valid_peers(), run(), server_configure_plugin(), server_parse_url(), state_machine(), store_peer_presistently_iterator(), stream_input_handle(), tunnels_callback(), and view_update_handle().

1360 {
1361  static GNUNET_THREAD_LOCAL char buf[256];
1362  char *ret;
1363 
1365  strcpy (buf, ret);
1366  GNUNET_free (ret);
1367  return buf;
1368 }
#define GNUNET_THREAD_LOCAL
Definition: platform.h:255
static int ret
Return value of the commandline.
Definition: gnunet-abd.c:81
char * GNUNET_CRYPTO_eddsa_public_key_to_string(const struct GNUNET_CRYPTO_EddsaPublicKey *pub)
Convert a public key to a string.
Definition: crypto_ecc.c:256
static char buf[2048]
#define GNUNET_free(ptr)
Wrapper around free.
struct GNUNET_CRYPTO_EddsaPublicKey public_key
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GNUNET_a2s()

const char* GNUNET_a2s ( const struct sockaddr *  addr,
socklen_t  addrlen 
)

Convert a "struct sockaddr*" (IPv4 or IPv6 address) to a string (for printing debug messages).

This is one of the very few calls in the entire API that is NOT reentrant!

Parameters
addrthe address
addrlenthe length of the addr
Returns
nicely formatted string for the address will be overwritten by next call to GNUNET_a2s().

This is one of the very few calls in the entire API that is NOT reentrant!

Parameters
addrthe address
addrlenthe length of the address in addr
Returns
nicely formatted string for the address will be overwritten by next call to GNUNET_a2s.

Definition at line 1382 of file common_logging.c.

References _, buf, GNUNET_snprintf(), and LEN.

Referenced by accept_client(), addr_cb(), address_cb(), analyze_send_error(), boot_queue(), check_access(), connect_success_continuation(), create_listen_socket(), free_lal(), get_server_addresses(), GNUNET_CONNECTION_connect_socket(), GNUNET_CONNECTION_create_from_accept(), GNUNET_NAT_AUTO_test_start(), GNUNET_NAT_test_start(), GNUNET_NETWORK_socket_accept(), GNUNET_NT_scanner_get_type(), handle_request(), handle_response(), handle_tcp_data(), handle_tcp_nat_probe(), handle_tcp_welcome(), http_common_address_from_socket(), http_common_dns_ip_lookup_cb(), iface_proc(), interface_proc(), LEGACY_SERVICE_get_server_addresses(), libgnunet_plugin_transport_tcp_init(), mq_send(), nat_address_cb(), notify_client(), notify_client_external_ipv4_change(), open_listen_socket(), print_sockaddr(), process_external_ip(), process_incoming(), proto_read_kx(), queue_read_kx(), receive_ready(), reversal_cb(), run(), run_scan(), server_accept_cb(), server_get_addresses(), server_nat_port_map_callback(), service_task(), setup_sockets(), sockaddr_to_udpaddr_string(), tcp_nat_port_map_callback(), tcp_plugin_get_session(), transmit_query(), transmit_ready(), transmit_timeout(), try_connect_using_address(), try_send_tcp(), try_send_udp(), udp_ipv4_broadcast_send(), udp_ipv6_broadcast_send(), udp_nat_port_map_callback(), udp_select_read(), udp_select_send(), unix_real_send(), and upnp_addr_change_cb().

1383 {
1384 #define LEN \
1385  GNUNET_MAX ((INET6_ADDRSTRLEN + 8), \
1386  (1 + sizeof(struct sockaddr_un) - sizeof(sa_family_t)))
1387  static char buf[LEN];
1388 #undef LEN
1389  static char b2[6];
1390  const struct sockaddr_in *v4;
1391  const struct sockaddr_un *un;
1392  const struct sockaddr_in6 *v6;
1393  unsigned int off;
1394 
1395  if (addr == NULL)
1396  return _ ("unknown address");
1397  switch (addr->sa_family)
1398  {
1399  case AF_INET:
1400  if (addrlen != sizeof(struct sockaddr_in))
1401  return "<invalid v4 address>";
1402  v4 = (const struct sockaddr_in *) addr;
1403  inet_ntop (AF_INET, &v4->sin_addr, buf, INET_ADDRSTRLEN);
1404  if (0 == ntohs (v4->sin_port))
1405  return buf;
1406  strcat (buf, ":");
1407  GNUNET_snprintf (b2, sizeof(b2), "%u", ntohs (v4->sin_port));
1408  strcat (buf, b2);
1409  return buf;
1410 
1411  case AF_INET6:
1412  if (addrlen != sizeof(struct sockaddr_in6))
1413  return "<invalid v6 address>";
1414  v6 = (const struct sockaddr_in6 *) addr;
1415  buf[0] = '[';
1416  inet_ntop (AF_INET6, &v6->sin6_addr, &buf[1], INET6_ADDRSTRLEN);
1417  if (0 == ntohs (v6->sin6_port))
1418  return &buf[1];
1419  strcat (buf, "]:");
1420  GNUNET_snprintf (b2, sizeof(b2), "%u", ntohs (v6->sin6_port));
1421  strcat (buf, b2);
1422  return buf;
1423 
1424  case AF_UNIX:
1425  if (addrlen <= sizeof(sa_family_t))
1426  return "<unbound UNIX client>";
1427  un = (const struct sockaddr_un *) addr;
1428  off = 0;
1429  if ('\0' == un->sun_path[0])
1430  off++;
1431  memset (buf, 0, sizeof(buf));
1432  GNUNET_snprintf (buf,
1433  sizeof(buf),
1434  "%s%.*s",
1435  (1 == off) ? "@" : "",
1436  (int) (addrlen - sizeof(sa_family_t) - off),
1437  &un->sun_path[off]);
1438  return buf;
1439 
1440  default:
1441  return _ ("invalid address");
1442  }
1443 }
int GNUNET_snprintf(char *buf, size_t size, const char *format,...)
Like snprintf, just aborts if the buffer is of insufficient size.
#define _(String)
GNU gettext support macro.
Definition: platform.h:180
static char buf[2048]
#define LEN
Here is the call graph for this function:

◆ GNUNET_error_type_to_string()

const char* GNUNET_error_type_to_string ( enum GNUNET_ErrorType  kind)

Convert error type to string.

Parameters
kindtype to convert
Returns
string corresponding to the type

Definition at line 1101 of file common_logging.c.

References _, GNUNET_ERROR_TYPE_BULK, GNUNET_ERROR_TYPE_DEBUG, GNUNET_ERROR_TYPE_ERROR, GNUNET_ERROR_TYPE_INFO, GNUNET_ERROR_TYPE_MESSAGE, and GNUNET_ERROR_TYPE_WARNING.

Referenced by output_message(), and run().

1102 {
1103  if ((kind & GNUNET_ERROR_TYPE_ERROR) > 0)
1104  return _ ("ERROR");
1105  if ((kind & GNUNET_ERROR_TYPE_WARNING) > 0)
1106  return _ ("WARNING");
1107  if ((kind & GNUNET_ERROR_TYPE_MESSAGE) > 0)
1108  return _ ("MESSAGE");
1109  if ((kind & GNUNET_ERROR_TYPE_INFO) > 0)
1110  return _ ("INFO");
1111  if ((kind & GNUNET_ERROR_TYPE_DEBUG) > 0)
1112  return _ ("DEBUG");
1113  if ((kind & ~GNUNET_ERROR_TYPE_BULK) == 0)
1114  return _ ("NONE");
1115  return _ ("INVALID");
1116 }
#define _(String)
GNU gettext support macro.
Definition: platform.h:180
Here is the caller graph for this function: