OpenVPN
|
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 [] |
|
inlinestatic |
Definition at line 60 of file ping.h.
References link_socket_addr::actual, context::c1, context::c2, ETT_DEFAULT, event_timeout_trigger(), link_socket_actual_defined(), context_1::link_socket_addr, context::options, context_2::ping_rec_interval, options::ping_rec_timeout, options::ping_timer_remote, context_2::timeval, and trigger_ping_timeout_signal().
Referenced by process_coarse_timers().
|
inlinestatic |
Definition at line 77 of file ping.h.
References context::c2, check_ping_send_dowork(), ETT_DEFAULT, event_timeout_trigger(), context::options, context_2::ping_send_interval, options::ping_send_timeout, context_2::timeval, and TO_LINK_DEF.
Referenced by process_coarse_timers().
void check_ping_send_dowork | ( | struct context * | c | ) |
Definition at line 75 of file ping.c.
References ASSERT, context_buffers::aux_buf, frame::buf, context_2::buf, buf_init, buf_safe(), buf_write(), context_2::buffers, context::c2, D_PING, dmsg, encrypt_sign(), context_2::frame, frame::headroom, buffer::len, frame::payload_size, and ping_string.
Referenced by check_ping_send().
|
inlinestatic |
Definition at line 41 of file ping.h.
References buf_string_match(), ping_string, and PING_STRING_SIZE.
Referenced by process_incoming_link_part2().
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 48 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, register_signal(), and context::sig.
Referenced by check_ping_restart(), process_incoming_dco(), and read_incoming_link().
const uint8_t ping_string[] |
Definition at line 42 of file ping.c.
Referenced by check_ping_send_dowork(), and is_ping_msg().