|
OpenVPN
|
#include "compat.h"#include <stdbool.h>#include <windows.h>#include <winsock2.h>#include <tlhelp32.h>#include <inttypes.h>#include <time.h>#include <stdlib.h>#include <stdint.h>#include <stdarg.h>#include <signal.h>#include <limits.h>#include <stdio.h>#include <ctype.h>#include <errno.h>#include <string.h>#include <naptypes.h>#include <ntddndis.h>#include <iphlpapi.h>#include <wininet.h>#include <shellapi.h>#include <io.h>#include <ws2tcpip.h>

Go to the source code of this file.
Macros | |
| #define | likely(x) |
| #define | unlikely(x) |
| #define | sleep(x) |
| #define | random rand |
| #define | srandom srand |
| #define | SIGHUP 1 |
| #define | SIGINT 2 |
| #define | SIGUSR1 10 |
| #define | SIGUSR2 12 |
| #define | SIGTERM 15 |
| #define | PASSTOS_CAPABILITY 0 |
| #define | ENABLE_IP_PKTINFO 0 |
| #define | SOL_IP IPPROTO_IP |
| #define | SYSLOG_CAPABILITY 0 |
| #define | O_BINARY 0 |
| #define | PATH_SEPARATOR '\\' |
| #define | PATH_SEPARATOR_STR "\\" |
| #define | SOCKET_UNDEFINED (INVALID_SOCKET) |
| #define | SOCKET_PRINTF "%" PRIxPTR |
| #define | PORT_SHARE 0 |
| #define | UNIX_SOCK_SUPPORT 0 |
| #define | PROXY_DIGEST_AUTH 1 |
| #define | ENABLE_CRYPTOAPI |
| #define | POLL 0 |
| #define | EPOLL 0 |
Typedefs | |
| typedef uint32_t | in_addr_t |
| typedef uint16_t | in_port_t |
| typedef unsigned short | sa_family_t |
| typedef SOCKET | socket_descriptor_t |
Functions | |
| static int | socket_defined (const socket_descriptor_t sd) |
| #define likely | ( | x | ) |
Definition at line 34 of file syshead.h.
Referenced by buf_defined(), buf_size_valid(), buf_size_valid_signed(), buf_valid(), and get_tun_ip_ver().
| #define O_BINARY 0 |
Definition at line 425 of file syshead.h.
Referenced by packet_id_persist_load().
| #define PATH_SEPARATOR '\\' |
Definition at line 432 of file syshead.h.
Referenced by platform_gen_path(), and verify_check_crl_dir().
| #define PATH_SEPARATOR_STR "\\" |
Definition at line 433 of file syshead.h.
Referenced by prepend_dir().
| #define random rand |
Definition at line 43 of file syshead.h.
Referenced by schedule_set_pri(), test_list(), test_siphash_openssl(), and tv_randomize().
| #define SIGHUP 1 |
Definition at line 55 of file syshead.h.
Referenced by add_option(), check_add_routes(), close_context(), do_preresolve(), halt_low_priority_signals(), is_exit_restart(), man_mod_signal(), man_settings_init(), openvpn_main(), options_postprocess_mutate(), post_init_signal_catch(), pre_init_signal_catch(), print_signal(), read_incoming_tun(), remap_restart_signals(), set_signals(), set_signals(), signal_restart_status(), and win32_signal_get().
| #define SIGINT 2 |
Definition at line 56 of file syshead.h.
Referenced by close_tun_afunix(), is_exit_restart(), man_block(), post_init_signal_catch(), pre_init_signal_catch(), print_signal(), process_signal(), set_signals(), set_signals(), and signal_restart_status().
| #define SIGTERM 15 |
Definition at line 59 of file syshead.h.
Referenced by add_option(), check_inactivity_timeout(), check_session_timeout(), check_tls(), do_signal_on_tls_errors(), is_exit_restart(), man_connect(), man_mod_signal(), man_reset_client_socket(), man_settings_init(), management_callback_kill_by_addr(), management_callback_kill_by_cn(), multi_close_instance(), phase2_tcp_server(), post_init_signal_catch(), pre_init_signal_catch(), print_signal(), process_explicit_exit_notification_timer_wakeup(), process_signal(), read_incoming_link(), read_incoming_tun(), receive_auth_failed(), remap_restart_signals(), schedule_exit(), server_pushed_signal(), set_signals(), set_signals(), signal_restart_status(), trigger_ping_timeout_signal(), win32_signal_get(), and win_ctrl_handler().
| #define SIGUSR1 10 |
Definition at line 57 of file syshead.h.
Referenced by check_connection_established(), check_dco_key_status(), check_server_poll_timeout(), check_tls(), close_context(), dco_connect_wait(), dco_get_peer_stats_multi(), do_close_free_key_schedule(), do_close_ifconfig_pool_persist(), do_close_link_socket(), do_close_packet_id(), do_close_plugins(), do_close_status_output(), do_close_tun(), do_init_crypto_tls_c1(), do_signal_on_tls_errors(), establish_http_proxy_passthru(), establish_socks_proxy_passthru(), establish_socks_proxy_udpassoc(), halt_low_priority_signals(), incoming_push_message(), is_exit_restart(), link_socket_init_phase2(), man_mod_signal(), man_reset_client_socket(), multi_client_generate_tls_keys(), openvpn_getaddrinfo(), openvpn_main(), post_init_signal_catch(), pre_init_signal_catch(), print_signal(), process_incoming_link_part1(), process_incoming_push_reply(), process_outgoing_link(), process_push_update(), process_received_occ_msg(), read_incoming_link(), receive_auth_failed(), receive_exit_message(), remap_restart_signals(), remap_signal(), resolve_remote(), send_push_request(), server_pushed_signal(), set_signals(), set_signals(), signal_restart_status(), socket_connect(), trigger_ping_timeout_signal(), and win32_signal_get().
| #define SIGUSR2 12 |
Definition at line 58 of file syshead.h.
Referenced by halt_low_priority_signals(), multi_process_signal(), post_init_signal_catch(), pre_init_signal_catch(), process_signal(), process_sigusr2(), set_signals(), set_signals(), and win32_signal_get().
| #define sleep | ( | x | ) |
Definition at line 42 of file syshead.h.
Referenced by add_option(), cc_handle_deferred_v1(), do_ifconfig_ipv6(), management_event_loop_n_seconds(), and management_sleep().
| #define SOCKET_PRINTF "%" PRIxPTR |
Definition at line 444 of file syshead.h.
Referenced by dco_new_peer(), and x_check_status().
| #define SOCKET_UNDEFINED (INVALID_SOCKET) |
Definition at line 443 of file syshead.h.
Referenced by create_socket_tcp(), create_socket_udp(), create_socket_udp_configured(), do_close_link_socket(), do_up(), link_socket_close(), link_socket_init_phase2(), link_socket_new(), link_socket_read_tcp(), man_connect(), man_connection_clear(), man_listen(), man_reset_client_socket(), net_event_win32_init(), net_event_win32_stop(), socket_connect(), socket_defined(), socket_do_accept(), socket_listen_accept(), and x_check_status().
| #define SOL_IP IPPROTO_IP |
Definition at line 402 of file syshead.h.
Referenced by create_socket_udp().
| #define srandom srand |
Definition at line 44 of file syshead.h.
Referenced by init_static().
| #define unlikely | ( | x | ) |
Definition at line 35 of file syshead.h.
Referenced by array_mult_safe(), packet_id_debug(), rand_bytes(), and token_decode().
| typedef unsigned short sa_family_t |
| typedef SOCKET socket_descriptor_t |
|
inlinestatic |
Definition at line 453 of file syshead.h.
References SOCKET_UNDEFINED.
Referenced by close_net_event_win32(), link_socket_close(), link_socket_update_buffer_sizes(), man_accept(), man_connection_close(), man_reset_client_socket(), man_update_io_state(), net_event_win32_start(), phase2_tcp_server(), socket_do_accept(), and socket_listen_accept().