OpenVPN
Data Structures | Macros | Functions | Variables
occ.h File Reference
#include "forward.h"
Include dependency graph for occ.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  mtu_load_test
 

Macros

#define OCC_STRING_SIZE   16
 
#define OCC_REQUEST   0 /* request options string from peer */
 
#define OCC_REPLY   1 /* deliver options string to peer */
 
#define OCC_INTERVAL_SECONDS   10
 
#define OCC_N_TRIES   12
 
#define OCC_MTU_LOAD_REQUEST   2 /* Ask peer to send a big packet to us */
 
#define OCC_MTU_LOAD   3 /* Send a big packet to peer */
 
#define OCC_MTU_REQUEST
 
#define OCC_MTU_REPLY   5 /* Send largest packet size to peer */
 
#define OCC_MTU_LOAD_INTERVAL_SECONDS   3
 
#define OCC_EXIT   6
 

Functions

static bool is_occ_msg (const struct buffer *buf)
 
void process_received_occ_msg (struct context *c)
 

Variables

const uint8_t occ_magic []
 

Macro Definition Documentation

◆ OCC_EXIT

#define OCC_EXIT   6

◆ OCC_INTERVAL_SECONDS

#define OCC_INTERVAL_SECONDS   10

Definition at line 48 of file occ.h.

Referenced by do_init_timers().

◆ OCC_MTU_LOAD

#define OCC_MTU_LOAD   3 /* Send a big packet to peer */

Definition at line 55 of file occ.h.

Referenced by check_send_occ_msg_dowork(), and process_received_occ_msg().

◆ OCC_MTU_LOAD_INTERVAL_SECONDS

#define OCC_MTU_LOAD_INTERVAL_SECONDS   3

Definition at line 64 of file occ.h.

Referenced by do_init_timers().

◆ OCC_MTU_LOAD_REQUEST

#define OCC_MTU_LOAD_REQUEST   2 /* Ask peer to send a big packet to us */

Definition at line 54 of file occ.h.

Referenced by check_send_occ_msg_dowork(), and process_received_occ_msg().

◆ OCC_MTU_REPLY

#define OCC_MTU_REPLY   5 /* Send largest packet size to peer */

Definition at line 58 of file occ.h.

Referenced by check_send_occ_msg_dowork(), and process_received_occ_msg().

◆ OCC_MTU_REQUEST

#define OCC_MTU_REQUEST
Value:
4 /* Ask peer to tell us the largest
* packet it has received from us so far */

Definition at line 56 of file occ.h.

Referenced by check_send_occ_msg_dowork(), and process_received_occ_msg().

◆ OCC_N_TRIES

#define OCC_N_TRIES   12

Definition at line 49 of file occ.h.

Referenced by check_send_occ_req_dowork().

◆ OCC_REPLY

#define OCC_REPLY   1 /* deliver options string to peer */

Definition at line 39 of file occ.h.

Referenced by check_send_occ_msg_dowork(), and process_received_occ_msg().

◆ OCC_REQUEST

#define OCC_REQUEST   0 /* request options string from peer */

◆ OCC_STRING_SIZE

#define OCC_STRING_SIZE   16

Definition at line 32 of file occ.h.

Referenced by check_send_occ_msg_dowork(), is_occ_msg(), and process_received_occ_msg().

Function Documentation

◆ is_occ_msg()

static bool is_occ_msg ( const struct buffer buf)
inlinestatic

◆ process_received_occ_msg()

void process_received_occ_msg ( struct context c)

Variable Documentation

◆ occ_magic

const uint8_t occ_magic[]

Definition at line 61 of file occ.c.

Referenced by check_send_occ_msg_dowork(), and is_occ_msg().