OpenVPN
|
#include "compat.h"
#include <stdbool.h>
#include <windows.h>
#include <winsock2.h>
#include <tlhelp32.h>
#include <time.h>
#include <stdlib.h>
#include <inttypes.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 <ws2tcpip.h>
Go to the source code of this file.
Macros | |
#define | likely(x) (x) |
#define | unlikely(x) (x) |
#define | sleep(x) Sleep((x)*1000) |
#define | random rand |
#define | srandom srand |
#define | PASSTOS_CAPABILITY 0 |
#define | EXTENDED_SOCKET_ERROR_CAPABILITY 0 |
#define | ENABLE_IP_PKTINFO 0 |
#define | SOL_IP IPPROTO_IP |
#define | SYSLOG_CAPABILITY 0 |
#define | O_BINARY 0 |
#define | OS_SPECIFIC_DIRSEP '\\' |
#define | SOCKET_UNDEFINED (INVALID_SOCKET) |
#define | USE_64_BIT_COUNTERS |
#define | PORT_SHARE 0 |
#define | UNIX_SOCK_SUPPORT 0 |
#define | NTLM 1 |
#define | PROXY_DIGEST_AUTH 1 |
#define | ENABLE_CRYPTOAPI |
#define | POLL 0 |
#define | EPOLL 0 |
Typedefs | |
typedef unsigned short | sa_family_t |
typedef SOCKET | socket_descriptor_t |
Functions | |
static int | socket_defined (const socket_descriptor_t sd) |
#define ENABLE_IP_PKTINFO 0 |
Definition at line 397 of file syshead.h.
Referenced by link_socket_read_tcp().
#define likely | ( | x | ) | (x) |
Definition at line 35 of file syshead.h.
Referenced by buf_size_valid(), buf_size_valid_signed(), buf_valid(), and get_tun_ip_ver().
#define O_BINARY 0 |
Definition at line 436 of file syshead.h.
Referenced by packet_id_persist_load().
#define OS_SPECIFIC_DIRSEP '\\' |
Definition at line 443 of file syshead.h.
Referenced by platform_gen_path(), and verify_check_crl_dir().
#define PASSTOS_CAPABILITY 0 |
Definition at line 378 of file syshead.h.
Referenced by process_ip_header().
#define random rand |
Definition at line 44 of file syshead.h.
Referenced by hash_iterator_delete_element(), schedule_remove_entry(), and schedule_set_pri().
#define sleep | ( | x | ) | Sleep((x)*1000) |
Definition at line 43 of file syshead.h.
Referenced by add_option(), auth_user_pass_verify(), cc_handle_deferred_v1(), do_ifconfig_ipv6(), init_static(), management_event_loop_n_seconds(), management_sleep(), and tls_final().
#define SOCKET_UNDEFINED (INVALID_SOCKET) |
Definition at line 452 of file syshead.h.
Referenced by link_socket_close(), link_socket_init_phase2(), link_socket_new(), man_connect(), man_connection_clear(), man_listen(), man_reset_client_socket(), management_show_net_callback(), net_event_win32_init(), net_event_win32_stop(), sd_close(), socket_connect(), socket_defined(), socket_do_accept(), and socket_listen_accept().
#define SOL_IP IPPROTO_IP |
Definition at line 405 of file syshead.h.
Referenced by create_socket_udp(), link_socket_read_tcp(), link_socket_write_tcp(), and translate_mtu_discover_type_name().
#define srandom srand |
Definition at line 45 of file syshead.h.
Referenced by init_static().
#define unlikely | ( | x | ) | (x) |
Definition at line 36 of file syshead.h.
Referenced by array_mult_safe(), packet_id_debug(), and rand_bytes().
typedef unsigned short sa_family_t |
typedef SOCKET socket_descriptor_t |
|
inlinestatic |
Definition at line 460 of file syshead.h.
References SOCKET_UNDEFINED.
Referenced by close_net_event_win32(), link_socket_close(), link_socket_update_buffer_sizes(), link_socket_update_flags(), man_accept(), man_connection_close(), man_new_connection_post(), man_record_peer_info(), man_reset_client_socket(), man_update_io_state(), net_event_win32_start(), phase2_tcp_server(), sd_close(), socket_do_accept(), and socket_listen_accept().