OpenVPN
Macros | Typedefs | Functions
syshead.h File Reference
#include "compat.h"
#include <stdbool.h>
#include <windows.h>
#include <winsock2.h>
#include <naptypes.h>
#include <ntddndis.h>
#include <iphlpapi.h>
#include <wininet.h>
#include <shellapi.h>
#include <ws2tcpip.h>
Include dependency graph for syshead.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 HAVE_GETTIMEOFDAY_NANOSECONDS   1
 
#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 P2MP   1
 
#define P2MP_SERVER   1
 
#define PORT_SHARE   0
 
#define MANAGMENT_EXTERNAL_KEY
 
#define MANAGEMENT_IN_EXTRA
 
#define UNIX_SOCK_SUPPORT   0
 
#define ENABLE_OCC
 
#define NTLM   1
 
#define PROXY_DIGEST_AUTH   1
 
#define ENABLE_CRYPTOAPI
 
#define POLL   0
 
#define EPOLL   0
 
#define TIME_BACKTRACK_PROTECTION   1
 
#define ENABLE_FEATURE_SHAPER   1
 
#define AUTO_USERID   0
 
#define ENABLE_CLIENT_CR
 

Typedefs

typedef int MIB_TCP_STATE
 
typedef unsigned short sa_family_t
 
typedef SOCKET socket_descriptor_t
 

Functions

static int socket_defined (const socket_descriptor_t sd)
 

Macro Definition Documentation

◆ AUTO_USERID

#define AUTO_USERID   0

Definition at line 666 of file syshead.h.

◆ ENABLE_CLIENT_CR

#define ENABLE_CLIENT_CR

Definition at line 673 of file syshead.h.

◆ ENABLE_CRYPTOAPI

#define ENABLE_CRYPTOAPI

Definition at line 611 of file syshead.h.

◆ ENABLE_FEATURE_SHAPER

#define ENABLE_FEATURE_SHAPER   1

Definition at line 650 of file syshead.h.

◆ ENABLE_IP_PKTINFO

#define ENABLE_IP_PKTINFO   0

Definition at line 431 of file syshead.h.

Referenced by link_socket_read_tcp().

◆ ENABLE_OCC

#define ENABLE_OCC

Definition at line 595 of file syshead.h.

◆ EPOLL

#define EPOLL   0

Definition at line 629 of file syshead.h.

◆ EXTENDED_SOCKET_ERROR_CAPABILITY

#define EXTENDED_SOCKET_ERROR_CAPABILITY   0

Definition at line 421 of file syshead.h.

◆ HAVE_GETTIMEOFDAY_NANOSECONDS

#define HAVE_GETTIMEOFDAY_NANOSECONDS   1

Definition at line 412 of file syshead.h.

◆ likely

#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().

◆ MANAGEMENT_IN_EXTRA

#define MANAGEMENT_IN_EXTRA

Definition at line 567 of file syshead.h.

◆ MANAGMENT_EXTERNAL_KEY

#define MANAGMENT_EXTERNAL_KEY

Definition at line 554 of file syshead.h.

◆ NTLM

#define NTLM   1

Definition at line 600 of file syshead.h.

◆ O_BINARY

#define O_BINARY   0

Definition at line 470 of file syshead.h.

Referenced by packet_id_persist_load().

◆ OS_SPECIFIC_DIRSEP

#define OS_SPECIFIC_DIRSEP   '\\'

Definition at line 477 of file syshead.h.

Referenced by platform_gen_path(), and verify_check_crl_dir().

◆ P2MP

#define P2MP   1

Definition at line 517 of file syshead.h.

◆ P2MP_SERVER

#define P2MP_SERVER   1

Definition at line 523 of file syshead.h.

Referenced by do_init_crypto_tls().

◆ PASSTOS_CAPABILITY

#define PASSTOS_CAPABILITY   0

Definition at line 405 of file syshead.h.

Referenced by process_ip_header().

◆ POLL

#define POLL   0

Definition at line 620 of file syshead.h.

◆ PORT_SHARE

#define PORT_SHARE   0

Definition at line 534 of file syshead.h.

◆ PROXY_DIGEST_AUTH

#define PROXY_DIGEST_AUTH   1

Definition at line 605 of file syshead.h.

◆ random

#define random   rand

Definition at line 43 of file syshead.h.

Referenced by hash_iterator_delete_element(), schedule_remove_entry(), and schedule_set_pri().

◆ sleep

#define sleep (   x)    Sleep((x)*1000)

◆ SOCKET_UNDEFINED

#define SOCKET_UNDEFINED   (INVALID_SOCKET)

◆ SOL_IP

#define SOL_IP   IPPROTO_IP

◆ srandom

#define srandom   srand

Definition at line 44 of file syshead.h.

Referenced by init_static().

◆ SYSLOG_CAPABILITY

#define SYSLOG_CAPABILITY   0

Definition at line 463 of file syshead.h.

◆ TIME_BACKTRACK_PROTECTION

#define TIME_BACKTRACK_PROTECTION   1

Definition at line 643 of file syshead.h.

◆ UNIX_SOCK_SUPPORT

#define UNIX_SOCK_SUPPORT   0

Definition at line 589 of file syshead.h.

◆ unlikely

#define unlikely (   x)    (x)

Definition at line 36 of file syshead.h.

Referenced by array_mult_safe(), packet_id_debug(), and rand_bytes().

◆ USE_64_BIT_COUNTERS

#define USE_64_BIT_COUNTERS

Definition at line 502 of file syshead.h.

Typedef Documentation

◆ MIB_TCP_STATE

typedef int MIB_TCP_STATE

Definition at line 367 of file syshead.h.

◆ sa_family_t

typedef unsigned short sa_family_t

Definition at line 446 of file syshead.h.

◆ socket_descriptor_t

typedef SOCKET socket_descriptor_t

Definition at line 487 of file syshead.h.

Function Documentation

◆ socket_defined()

static int socket_defined ( const socket_descriptor_t  sd)
inlinestatic