43 0x2a, 0x18, 0x7b, 0xf3, 0x64, 0x1e, 0xb4, 0xcb,
44 0x07, 0xed, 0x2d, 0x0a, 0x98, 0x1f, 0xc7, 0x48
54 msg(
M_INFO,
"%sInactivity timeout (--ping-exit), exiting",
60 msg(
M_INFO,
"%sInactivity timeout (--ping-restart), restarting",
static bool buf_safe(const struct buffer *buf, size_t len)
static bool buf_write(struct buffer *dest, const void *src, size_t size)
static void gc_free(struct gc_arena *a)
#define buf_init(buf, offset)
static struct gc_arena gc_new(void)
void encrypt_sign(struct context *c, bool comp_frag)
Process a data channel packet that will be sent through a VPN tunnel.
const char * format_common_name(struct context *c, struct gc_arena *gc)
const uint8_t ping_string[]
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 (SIGUSR...
void check_ping_send_dowork(struct context *c)
void register_signal(struct signal_info *si, int signum, const char *signal_text)
Register a soft signal in the signal_info struct si respecting priority.
int len
Length in bytes of the actual content within the allocated memory.
struct context_buffers * buffers
Contains all state information for one tunnel.
struct signal_info * sig
Internal error signaling object.
struct context_2 c2
Level 2 context.
struct options options
Options loaded from command line or configuration file.
int payload_size
the maximum size that a payload that our buffers can hold from either tun device or network link.
int headroom
the headroom in the buffer, this is choosen to allow all potential header to be added before the pack...
Garbage collection arena used to keep track of dynamically allocated memory.
int ping_rec_timeout_action