OpenVPN
Macros
basic.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BOOL_CAST(x)   ((x) ? (true) : (false))
 
#define SIZE(x)   (sizeof(x)/sizeof(x[0]))
 
#define CLEAR(x)   memset(&(x), 0, sizeof(x))
 
#define IPV4_NETMASK_HOST   0xffffffffU
 

Macro Definition Documentation

◆ BOOL_CAST

#define BOOL_CAST (   x)    ((x) ? (true) : (false))

◆ CLEAR

#define CLEAR (   x)    memset(&(x), 0, sizeof(x))

Definition at line 33 of file basic.h.

Referenced by add_route3(), add_route_connected_v6_net(), add_route_ipapi(), apply_push_options(), auth_token_test_empty_user(), buf_sub(), clear_route_ipv6_list(), clear_route_list(), clear_tuntap(), context_clear(), context_clear_1(), context_clear_2(), context_init_1(), del_route3(), del_route_ipapi(), delete_route_connected_v6_net(), do_close_free_key_schedule(), do_close_link_socket(), do_close_tun_simple(), do_ifconfig_ipv4(), do_init_crypto_tls(), do_init_tls_wrap_key(), establish_socks_proxy_udpassoc(), fork_to_self(), free_buf(), free_buf_gc(), generate_key_random(), get_default_gateway(), get_default_gateway_ipv6(), ifconfig_pool_write(), inherit_context_child(), init_ip_addr_string2(), init_key_ctx(), init_key_type(), init_management_callback_multi(), init_management_callback_p2p(), init_options(), init_route(), init_route_ipv6(), init_security_attributes_allow_all(), initialization_sequence_completed(), interval_init(), ipv6_send_icmp_unreachable(), key_direction_state_init(), key_method_2_read(), key_schedule_free(), key_source2_randomize_write(), key_source2_read(), key_state_init(), key_state_ssl_init(), log_entry_free_contents(), log_history_obj_init(), man_accept(), man_connection_clear(), man_io_error(), man_persist_close(), man_persist_init(), man_process_command(), man_record_peer_info(), man_settings_close(), man_settings_init(), management_callback_kill_by_addr(), management_clear_callback(), management_echo(), management_query_user_pass(), management_set_state(), mroute_addr_init(), multi_get_timeout(), multi_init(), multi_learn_in_addr_t(), multi_select_virtual_addr(), net_event_win32_init(), netsh_ifconfig(), ntlm_phase_3(), open_null(), open_tun(), openvpn_execve(), openvpn_getaddrinfo(), openvpn_inet_aton(), openvpn_main(), overlapped_io_init(), packet_id_free(), packet_id_init(), packet_id_persist_print(), parse_argv(), platform_group_get(), platform_user_get(), plugin_call_item(), plugin_open_item(), plugin_per_client_destroy(), pre_pull_restore(), print_in_addr_t(), print_link_socket_actual_ex(), push_reset(), query_user_clear(), read_config_file(), read_config_string(), read_key(), read_key_file(), recv_line(), reliable_init(), remove_iroutes_from_push_route_list(), resolve_remote(), schedule_remove_entry(), sd_close(), semaphore_clear(), set_actual_address(), setenv_in6_addr(), setenv_in_addr_t(), shaper_reset_wakeup(), show_routes(), socket_do_accept(), socket_finalize(), socket_listen_accept(), stale_route_check_trigger(), status_trigger(), tls_session_init(), usec_timer_start(), virtual_output_callback_func(), we_init(), win32_signal_clear(), win32_signal_close(), win32_signal_open(), win_trigger_event(), and window_title_clear().

◆ IPV4_NETMASK_HOST

#define IPV4_NETMASK_HOST   0xffffffffU

◆ SIZE

#define SIZE (   x)    (sizeof(x)/sizeof(x[0]))