OpenVPN
Macros | Functions | Variables
ping.h File Reference
#include "init.h"
#include "forward.h"
Include dependency graph for ping.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PRE_PULL_INITIAL_PING_RESTART   120 /* in seconds */
 
#define PING_STRING_SIZE   16
 

Functions

static bool is_ping_msg (const struct buffer *buf)
 
void trigger_ping_timeout_signal (struct context *c)
 Trigger the correct signal on a –ping timeout depending if –ping-exit is set (SIGTERM) or not (SIGUSR1) More...
 
void check_ping_send_dowork (struct context *c)
 
static void check_ping_restart (struct context *c)
 
static void check_ping_send (struct context *c)
 

Variables

const uint8_t ping_string []
 

Macro Definition Documentation

◆ PING_STRING_SIZE

#define PING_STRING_SIZE   16

Definition at line 38 of file ping.h.

Referenced by is_ping_msg().

◆ PRE_PULL_INITIAL_PING_RESTART

#define PRE_PULL_INITIAL_PING_RESTART   120 /* in seconds */

Definition at line 33 of file ping.h.

Referenced by update_options_ce_post().

Function Documentation

◆ check_ping_restart()

static void check_ping_restart ( struct context c)
inlinestatic

◆ check_ping_send()

static void check_ping_send ( struct context c)
inlinestatic

◆ check_ping_send_dowork()

void check_ping_send_dowork ( struct context c)

◆ is_ping_msg()

static bool is_ping_msg ( const struct buffer buf)
inlinestatic

◆ trigger_ping_timeout_signal()

void trigger_ping_timeout_signal ( struct context c)

Trigger the correct signal on a –ping timeout depending if –ping-exit is set (SIGTERM) or not (SIGUSR1)

Definition at line 50 of file ping.c.

References ASSERT, format_common_name(), gc_free(), gc_new(), M_INFO, msg, context::options, PING_EXIT, options::ping_rec_timeout_action, PING_RESTART, context::sig, signal_info::signal_received, signal_info::signal_text, SIGTERM, and SIGUSR1.

Referenced by check_ping_restart(), and is_ping_msg().

Variable Documentation

◆ ping_string

const uint8_t ping_string[]

Definition at line 44 of file ping.c.

Referenced by check_ping_send_dowork(), and is_ping_msg().