OpenVPN
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, const struct key_type *kt, const struct options *options, const struct link_socket_info *lsi)
static void frame_calculate_mssfix (struct frame *frame, const struct key_type *kt, const struct options *options, const struct link_socket_info *lsi)
void frame_calculate_dynamic (struct frame *frame, const struct key_type *kt, const struct options *options, const struct link_socket_info *lsi)
 Set the –mssfix option.
void frame_adjust_path_mtu (struct context *c)
 Checks and adjusts the fragment and mssfix value according to the discovered path mtu value.

Function Documentation

◆ adjust_payload_max_cbc()

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

◆ frame_adjust_path_mtu()

◆ frame_calculate_dynamic()

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

◆ frame_calculate_fragment()

◆ frame_calculate_mssfix()

◆ get_ip_encap_overhead()

◆ mss_fixup_dowork()

◆ mss_fixup_ipv4()

◆ mss_fixup_ipv6()

void mss_fixup_ipv6 ( struct buffer * buf,
uint16_t maxmss )