OpenVPN
Macros | Typedefs | Functions
syshead.h File Reference
#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 <io.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 EXTENDED_SOCKET_ERROR_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 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)
 

Macro Definition Documentation

◆ ENABLE_CRYPTOAPI

#define ENABLE_CRYPTOAPI

Definition at line 515 of file syshead.h.

◆ ENABLE_IP_PKTINFO

#define ENABLE_IP_PKTINFO   0

Definition at line 387 of file syshead.h.

Referenced by link_socket_read_tcp().

◆ EPOLL

#define EPOLL   0

Definition at line 535 of file syshead.h.

◆ EXTENDED_SOCKET_ERROR_CAPABILITY

#define EXTENDED_SOCKET_ERROR_CAPABILITY   0

Definition at line 377 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().

◆ NTLM

#define NTLM   1

Definition at line 503 of file syshead.h.

◆ O_BINARY

#define O_BINARY   0

Definition at line 426 of file syshead.h.

Referenced by packet_id_persist_load().

◆ PASSTOS_CAPABILITY

#define PASSTOS_CAPABILITY   0

Definition at line 368 of file syshead.h.

Referenced by process_ip_header().

◆ PATH_SEPARATOR

#define PATH_SEPARATOR   '\\'

Definition at line 433 of file syshead.h.

◆ PATH_SEPARATOR_STR

#define PATH_SEPARATOR_STR   "\\"

Definition at line 434 of file syshead.h.

◆ POLL

#define POLL   0

Definition at line 526 of file syshead.h.

◆ PORT_SHARE

#define PORT_SHARE   0

Definition at line 471 of file syshead.h.

◆ PROXY_DIGEST_AUTH

#define PROXY_DIGEST_AUTH   1

Definition at line 508 of file syshead.h.

◆ random

#define random   rand

Definition at line 44 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 45 of file syshead.h.

Referenced by init_static().

◆ SYSLOG_CAPABILITY

#define SYSLOG_CAPABILITY   0

Definition at line 419 of file syshead.h.

◆ UNIX_SOCK_SUPPORT

#define UNIX_SOCK_SUPPORT   0

Definition at line 497 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().

Typedef Documentation

◆ sa_family_t

typedef unsigned short sa_family_t

Definition at line 402 of file syshead.h.

◆ socket_descriptor_t

typedef SOCKET socket_descriptor_t

Definition at line 445 of file syshead.h.

Function Documentation

◆ socket_defined()

static int socket_defined ( const socket_descriptor_t  sd)
inlinestatic