FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
mss_clamp.c File Reference
+ Include dependency graph for mss_clamp.c:

Go to the source code of this file.

Macros

#define DIR2S(d)
 

Functions

static void mssc_enable_disable_feat (u32 sw_if_index, u8 dir4, u8 dir6, int enable)
 
int mssc_enable_disable (u32 sw_if_index, u8 dir4, u8 dir6, u16 mss4, u16 mss6)
 
int mssc_get_mss (u32 sw_if_index, u8 *dir4, u8 *dir6, u16 *mss4, u16 *mss6)
 
static uword unformat_mssc_dir (unformat_input_t *input, va_list *args)
 
static clib_error_tmssc_enable_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static u8format_mssc_clamping (u8 *s, va_list *args)
 
static clib_error_tmssc_show_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tmssc_init (vlib_main_t *vm)
 

Variables

mssc_main_t mssc_main
 
static vlib_cli_command_t mssc_enable_disable_command
 (constructor) VLIB_CLI_COMMAND (mssc_enable_disable_command) More...
 
static vlib_cli_command_t mssc_show_command
 (constructor) VLIB_CLI_COMMAND (mssc_show_command) More...
 

Macro Definition Documentation

◆ DIR2S

#define DIR2S (   d)
Value:
"" : \
(((d) == MSS_CLAMP_DIR_RX) ? " [RX]" : " [TX]"))

Function Documentation

◆ format_mssc_clamping()

static u8* format_mssc_clamping ( u8 s,
va_list *  args 
)
static

Definition at line 207 of file mss_clamp.c.

+ Here is the caller graph for this function:

◆ mssc_enable_command_fn()

static clib_error_t* mssc_enable_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 140 of file mss_clamp.c.

+ Here is the call graph for this function:

◆ mssc_enable_disable()

int mssc_enable_disable ( u32  sw_if_index,
u8  dir4,
u8  dir6,
u16  mss4,
u16  mss6 
)

Definition at line 50 of file mss_clamp.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mssc_enable_disable_feat()

static void mssc_enable_disable_feat ( u32  sw_if_index,
u8  dir4,
u8  dir6,
int  enable 
)
static

Definition at line 28 of file mss_clamp.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mssc_get_mss()

int mssc_get_mss ( u32  sw_if_index,
u8 dir4,
u8 dir6,
u16 mss4,
u16 mss6 
)

Definition at line 85 of file mss_clamp.c.

+ Here is the caller graph for this function:

◆ mssc_init()

static clib_error_t* mssc_init ( vlib_main_t vm)
static

Definition at line 279 of file mss_clamp.c.

◆ mssc_show_command_fn()

static clib_error_t* mssc_show_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 225 of file mss_clamp.c.

+ Here is the call graph for this function:

◆ unformat_mssc_dir()

static uword unformat_mssc_dir ( unformat_input_t input,
va_list *  args 
)
static

Definition at line 119 of file mss_clamp.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ mssc_enable_disable_command

vlib_cli_command_t mssc_enable_disable_command
static
Initial value:
= {
.path = "set interface tcp-mss-clamp",
.short_help = "set interface tcp-mss-clamp <interface-name> "
"ip4 [enable|disable|rx|tx] ip4-mss <size> "
"ip6 [enable|disable|rx|tx] ip6-mss <size>",
}

(constructor) VLIB_CLI_COMMAND (mssc_enable_disable_command)

Definition at line 198 of file mss_clamp.c.

◆ mssc_main

mssc_main_t mssc_main

Definition at line 23 of file mss_clamp.c.

◆ mssc_show_command

vlib_cli_command_t mssc_show_command
static
Initial value:
= {
.path = "show interface tcp-mss-clamp",
.short_help = "show interface tcp-mss-clamp [interface-name]",
.long_help = "show TCP MSS clamping configurations",
.function = mssc_show_command_fn,
}

(constructor) VLIB_CLI_COMMAND (mssc_show_command)

Definition at line 271 of file mss_clamp.c.

mssc_show_command_fn
static clib_error_t * mssc_show_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: mss_clamp.c:225
MSS_CLAMP_DIR_RX
enumflag MSS_CLAMP_DIR_RX
Definition: mss_clamp.api:24
mssc_enable_command_fn
static clib_error_t * mssc_enable_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: mss_clamp.c:140
MSS_CLAMP_DIR_TX
enumflag MSS_CLAMP_DIR_TX
Definition: mss_clamp.api:25