30#define OCC_STRING_SIZE 16
46#define OCC_INTERVAL_SECONDS 10
52#define OCC_MTU_LOAD_REQUEST 2
54#define OCC_MTU_REQUEST 4
56#define OCC_MTU_REPLY 5
62#define OCC_MTU_LOAD_INTERVAL_SECONDS 3
static bool buf_string_match_head(const struct buffer *src, const void *match, int size)
Compare first size bytes of src buffer contents with match.
#define CO_USE_CC_EXIT_NOTIFY
Bit-flag indicating that explicit exit notifies should be sent via the control channel instead of usi...
Interface functions to the internal and external multiplexers.
bool event_timeout_trigger(struct event_timeout *et, struct timeval *tv, const int et_const_retry)
This is the principal function for testing and triggering recurring timers.
static bool event_timeout_defined(const struct event_timeout *et)
static void check_send_occ_msg(struct context *c)
void process_received_occ_msg(struct context *c)
static bool is_occ_msg(const struct buffer *buf)
void check_send_occ_req_dowork(struct context *c)
static int occ_reset_op(void)
static void check_send_occ_req(struct context *c)
void check_send_occ_msg_dowork(struct context *c)
const uint8_t occ_magic[]
void check_send_occ_load_test_dowork(struct context *c)
static bool cc_exit_notify_enabled(struct context *c)
Small helper function to determine if we should send the exit notification via control channel.
static void check_send_occ_load_test(struct context *c)
static void tv_clear(struct timeval *tv)
static const struct key_state * get_primary_key(const struct tls_multi *multi)
gets an item of key_state objects in the order they should be scanned by data channel modules.
Wrapper structure for dynamically allocated memory.
struct event_timeout occ_mtu_load_test_interval
struct tls_multi * tls_multi
TLS state structure for this VPN tunnel.
struct event_timeout occ_interval
struct timeval timeval
Time to next event of timers and similar.
Contains all state information for one tunnel.
struct context_2 c2
Level 2 context.
unsigned int flags
Bit-flags determining behavior of security operation functions.
Security parameter state of one TLS and data channel key session.
struct crypto_options crypto_options