OpenVPN
Macros | Functions
openvpn.c File Reference
#include "syshead.h"
#include "init.h"
#include "forward.h"
#include "multi.h"
#include "win32.h"
#include "platform.h"
#include "memdbg.h"
Include dependency graph for openvpn.c:

Go to the source code of this file.

Macros

#define P2P_CHECK_SIG()   EVENT_LOOP_CHECK_SIGNAL(c, process_signal_p2p, c);
 

Functions

static bool process_signal_p2p (struct context *c)
 
static void write_pid (const char *filename)
 
static void tunnel_point_to_point (struct context *c)
 Main event loop for OpenVPN in client mode, where only one VPN tunnel is active. More...
 
static int openvpn_main (int argc, char *argv[])
 OpenVPN's main init-run-cleanup loop. More...
 
int wmain (int argc, wchar_t *wargv[])
 

Macro Definition Documentation

◆ P2P_CHECK_SIG

#define P2P_CHECK_SIG ( )    EVENT_LOOP_CHECK_SIGNAL(c, process_signal_p2p, c);

Definition at line 40 of file openvpn.c.

Referenced by tunnel_point_to_point().

Function Documentation

◆ process_signal_p2p()

static bool process_signal_p2p ( struct context c)
static

Definition at line 43 of file openvpn.c.

References process_signal(), and remap_signal().

◆ wmain()

int wmain ( int  argc,
wchar_t *  wargv[] 
)

Definition at line 353 of file openvpn.c.

References free, main(), malloc, and openvpn_main().

◆ write_pid()

static void write_pid ( const char *  filename)
static

Definition at line 51 of file openvpn.c.

References M_ERR, msg, platform_fopen(), and platform_getpid().

Referenced by openvpn_main().