24 #ifndef FORWARD_INLINE_H 25 #define FORWARD_INLINE_H 185 #ifdef ENABLE_FRAGMENT 250 if (sec < c->c2.timeval.tv_sec)
288 static inline unsigned int 315 unsigned int ret = 0;
333 #define CONNECTION_ESTABLISHED(c) (get_link_socket_info(c)->connection_established) void io_wait_dowork(struct context *c, const unsigned int flags)
void check_server_poll_timeout_dowork(struct context *c)
struct event_timeout route_wakeup
void check_tls_dowork(struct context *c)
struct options options
Options loaded from command line or configuration file.
Contains all state information for one tunnel.
static void context_reschedule_sec(struct context *c, int sec)
bool status_trigger_tv(struct status_output *so, struct timeval *tv)
static int tls_test_payload_len(const struct tls_multi *multi)
struct event_timeout wait_for_connect
int inactivity_minimum_bytes
struct link_socket_info * link_socket_info
static void check_packet_id_persist_flush(struct context *c)
struct link_socket_info info
void check_status_file_dowork(struct context *c)
static void check_scheduled_exit(struct context *c)
static bool link_socket_connection_oriented(const struct link_socket *sock)
static void check_incoming_control_channel(struct context *c)
int len
Length in bytes of the actual content within the allocated memory.
struct context_1 c1
Level 1 context.
struct event_timeout inactivity_interval
static void event_timeout_reset(struct event_timeout *et)
bool event_timeout_trigger(struct event_timeout *et, struct timeval *tv, const int et_const_retry)
void check_add_routes_dowork(struct context *c)
static bool event_timeout_defined(const struct event_timeout *et)
static void check_add_routes(struct context *c)
static void check_inactivity_timeout(struct context *c)
static void register_activity(struct context *c, const int size)
struct event_timeout scheduled_exit
struct link_socket * link_socket
void check_fragment_dowork(struct context *c)
static void check_status_file(struct context *c)
struct connection_entry ce
struct context_2 c2
Level 2 context.
void check_push_request_dowork(struct context *c)
struct event_timeout packet_id_persist_interval
struct event_timeout push_request_interval
static void check_tls_errors(struct context *c)
void check_scheduled_exit_dowork(struct context *c)
void check_incoming_control_channel_dowork(struct context *c)
static void check_push_request(struct context *c)
static void check_fragment(struct context *c)
struct fragment_master * fragment
#define IOW_CHECK_RESIDUAL
void check_tls_errors_co(struct context *c)
struct status_output * status_output
struct packet_id_persist pid_persist
struct event_timeout server_poll_interval
static void context_immediate_reschedule(struct context *c)
static unsigned int p2p_iow_flags(const struct context *c)
void check_connection_established_dowork(struct context *c)
static bool packet_id_persist_enabled(const struct packet_id_persist *p)
static void check_connection_established(struct context *c)
void check_inactivity_timeout_dowork(struct context *c)
void packet_id_persist_save(struct packet_id_persist *p)
void check_tls_errors_nco(struct context *c)
static void check_tls(struct context *c)
static void io_wait(struct context *c, const unsigned int flags)
unsigned int event_set_status
struct tls_multi * tls_multi
TLS state structure for this VPN tunnel.
static void check_server_poll_timeout(struct context *c)
static struct link_socket_info * get_link_socket_info(struct context *c)