Macros | Functions
mtu.c File Reference
#include "syshead.h"
#include "common.h"
#include "buffer.h"
#include "error.h"
#include "integer.h"
#include "mtu.h"
#include "options.h"
#include "memdbg.h"
Include dependency graph for mtu.c:

Go to the source code of this file.


#define MTUDISC_NOT_SUPPORTED_MSG   "--mtu-disc is not supported on this OS"


void alloc_buf_sock_tun (struct buffer *buf, const struct frame *frame, const bool tuntap_buffer, const unsigned int align_mask)
void frame_finalize (struct frame *frame, bool link_mtu_defined, int link_mtu, bool tun_mtu_defined, int tun_mtu)
void frame_set_mtu_dynamic (struct frame *frame, int mtu, unsigned int flags)
void frame_subtract_extra (struct frame *frame, const struct frame *src)
void frame_init_mssfix (struct frame *frame, const struct options *options)
 Set the –mssfix option. More...
void frame_print (const struct frame *frame, int level, const char *prefix)
void set_mtu_discover_type (int sd, int mtu_type, sa_family_t proto_af)
int translate_mtu_discover_type_name (const char *name)

Macro Definition Documentation


#define MTUDISC_NOT_SUPPORTED_MSG   "--mtu-disc is not supported on this OS"

Definition at line 166 of file mtu.c.

Referenced by set_mtu_discover_type(), and translate_mtu_discover_type_name().

Function Documentation

◆ alloc_buf_sock_tun()

void alloc_buf_sock_tun ( struct buffer buf,
const struct frame frame,
const bool  tuntap_buffer,
const unsigned int  align_mask 

◆ frame_finalize()

void frame_finalize ( struct frame frame,
bool  link_mtu_defined,
int  link_mtu,
bool  tun_mtu_defined,
int  tun_mtu 

◆ frame_init_mssfix()

void frame_init_mssfix ( struct frame frame,
const struct options options 

Set the –mssfix option.

Definition at line 130 of file mtu.c.

References options::ce, frame_set_mtu_dynamic(), connection_entry::mssfix, and SET_MTU_UPPER_BOUND.

Referenced by init_instance(), and tls_session_update_crypto_params().

◆ frame_print()

void frame_print ( const struct frame frame,
int  level,
const char *  prefix 

◆ frame_set_mtu_dynamic()

void frame_set_mtu_dynamic ( struct frame frame,
int  mtu,
unsigned int  flags 

◆ frame_subtract_extra()

void frame_subtract_extra ( struct frame frame,
const struct frame src 

Definition at line 123 of file mtu.c.

References frame::extra_frame, and frame::extra_tun.

Referenced by do_init_frame().

◆ set_mtu_discover_type()

void set_mtu_discover_type ( int  sd,
int  mtu_type,
sa_family_t  proto_af 

Definition at line 169 of file mtu.c.


Referenced by phase2_set_socket_flags().

◆ translate_mtu_discover_type_name()

int translate_mtu_discover_type_name ( const char *  name)