Go to the documentation of this file.
30 #define OCC_STRING_SIZE 16
46 #define OCC_INTERVAL_SECONDS 10
47 #define OCC_N_TRIES 12
52 #define OCC_MTU_LOAD_REQUEST 2
53 #define OCC_MTU_LOAD 3
54 #define OCC_MTU_REQUEST 4
56 #define OCC_MTU_REPLY 5
62 #define OCC_MTU_LOAD_INTERVAL_SECONDS 3
struct tls_multi * tls_multi
TLS state structure for this VPN tunnel.
const uint8_t occ_magic[]
void check_send_occ_msg_dowork(struct context *c)
static int occ_reset_op(void)
Contains all state information for one tunnel.
static void check_send_occ_req(struct context *c)
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.
Security parameter state of one TLS and data channel key session.
struct event_timeout occ_interval
void process_received_occ_msg(struct context *c)
struct crypto_options crypto_options
struct context_2 c2
Level 2 context.
void check_send_occ_req_dowork(struct context *c)
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.
static bool is_occ_msg(const struct buffer *buf)
static void check_send_occ_load_test(struct context *c)
Wrapper structure for dynamically allocated memory.
void check_send_occ_load_test_dowork(struct context *c)
struct timeval timeval
Time to next event of timers and similar.
static bool cc_exit_notify_enabled(struct context *c)
Small helper function to determine if we should send the exit notification via control channel.
struct event_timeout occ_mtu_load_test_interval
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)
unsigned int flags
Bit-flags determining behavior of security operation functions.
#define CO_USE_CC_EXIT_NOTIFY
Bit-flag indicating that explicit exit notifies should be sent via the control channel instead of usi...
static void tv_clear(struct timeval *tv)
static void check_send_occ_msg(struct context *c)