OpenVPN
Functions
mss.c File Reference
#include "syshead.h"
#include "error.h"
#include "mss.h"
#include "crypto.h"
#include "ssl_common.h"
#include "memdbg.h"
#include "forward.h"
Include dependency graph for mss.c:

Go to the source code of this file.

Functions

void mss_fixup_ipv4 (struct buffer *buf, uint16_t maxmss)
 
void mss_fixup_ipv6 (struct buffer *buf, uint16_t maxmss)
 
void mss_fixup_dowork (struct buffer *buf, uint16_t maxmss)
 
static size_t adjust_payload_max_cbc (const struct key_type *kt, size_t target)
 
static size_t get_ip_encap_overhead (const struct options *options, const struct link_socket_info *lsi)
 
static void frame_calculate_fragment (struct frame *frame, struct key_type *kt, const struct options *options, struct link_socket_info *lsi)
 
static void frame_calculate_mssfix (struct frame *frame, struct key_type *kt, const struct options *options, struct link_socket_info *lsi)
 
void frame_calculate_dynamic (struct frame *frame, struct key_type *kt, const struct options *options, struct link_socket_info *lsi)
 Set the –mssfix option. More...
 
void frame_adjust_path_mtu (struct context *c)
 Checks and adjusts the fragment and mssfix value according to the discovered path mtu value. More...
 

Function Documentation

◆ adjust_payload_max_cbc()

static size_t adjust_payload_max_cbc ( const struct key_type kt,
size_t  target 
)
inlinestatic

◆ frame_adjust_path_mtu()

void frame_adjust_path_mtu ( struct context c)

◆ frame_calculate_dynamic()

void frame_calculate_dynamic ( struct frame frame,
struct key_type kt,
const struct options options,
struct link_socket_info lsi 
)

◆ frame_calculate_fragment()

static void frame_calculate_fragment ( struct frame frame,
struct key_type kt,
const struct options options,
struct link_socket_info lsi 
)
static

◆ frame_calculate_mssfix()

static void frame_calculate_mssfix ( struct frame frame,
struct key_type kt,
const struct options options,
struct link_socket_info lsi 
)
static

◆ get_ip_encap_overhead()

static size_t get_ip_encap_overhead ( const struct options options,
const struct link_socket_info lsi 
)
static

◆ mss_fixup_dowork()

void mss_fixup_dowork ( struct buffer buf,
uint16_t  maxmss 
)

◆ mss_fixup_ipv4()

void mss_fixup_ipv4 ( struct buffer buf,
uint16_t  maxmss 
)

◆ mss_fixup_ipv6()

void mss_fixup_ipv6 ( struct buffer buf,
uint16_t  maxmss 
)