FD.io VPP  v20.05.1-6-gf53edbc3b
Vector Packet Processing
ct6.c File Reference
+ Include dependency graph for ct6.c:

Go to the source code of this file.

Macros

#define REPLY_MSG_ID_BASE   cmp->msg_id_base
 

Functions

static void ct6_feature_init (ct6_main_t *cmp)
 
int ct6_in2out_enable_disable (ct6_main_t *cmp, u32 sw_if_index, int enable_disable)
 
int ct6_out2in_enable_disable (ct6_main_t *cmp, u32 sw_if_index, int enable_disable)
 
static clib_error_tset_ct6_enable_disable_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static void vl_api_ct6_enable_disable_t_handler (vl_api_ct6_enable_disable_t *mp)
 
static clib_error_tct6_init (vlib_main_t *vm)
 
 VNET_FEATURE_INIT (ct6out2in, static)
 
 VNET_FEATURE_INIT (ct6in2out, static)
 
 VLIB_PLUGIN_REGISTER ()
 
u8format_ct6_session (u8 *s, va_list *args)
 
static clib_error_tshow_ct6_command_fn_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static void increment_v6_address (ip6_address_t *a)
 
static clib_error_ttest_ct6_command_fn_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tct6_config (vlib_main_t *vm, unformat_input_t *input)
 

Variables

ct6_main_t ct6_main
 
static vlib_cli_command_t set_ct6_command
 (constructor) VLIB_CLI_COMMAND (set_ct6_command) More...
 
static vlib_cli_command_t show_ct6_command_fn_command
 (constructor) VLIB_CLI_COMMAND (show_ct6_command_fn_command) More...
 
static vlib_cli_command_t test_ct6_command_fn_command
 (constructor) VLIB_CLI_COMMAND (test_ct6_command_fn_command) More...
 

Macro Definition Documentation

◆ REPLY_MSG_ID_BASE

#define REPLY_MSG_ID_BASE   cmp->msg_id_base

Definition at line 30 of file ct6.c.

Function Documentation

◆ ct6_config()

static clib_error_t* ct6_config ( vlib_main_t vm,
unformat_input_t input 
)
static

Definition at line 478 of file ct6.c.

+ Here is the call graph for this function:

◆ ct6_feature_init()

static void ct6_feature_init ( ct6_main_t cmp)
static

Definition at line 38 of file ct6.c.

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

◆ ct6_in2out_enable_disable()

int ct6_in2out_enable_disable ( ct6_main_t cmp,
u32  sw_if_index,
int  enable_disable 
)

Definition at line 54 of file ct6.c.

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

◆ ct6_init()

static clib_error_t* ct6_init ( vlib_main_t vm)
static

Definition at line 189 of file ct6.c.

+ Here is the call graph for this function:

◆ ct6_out2in_enable_disable()

int ct6_out2in_enable_disable ( ct6_main_t cmp,
u32  sw_if_index,
int  enable_disable 
)

Definition at line 79 of file ct6.c.

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

◆ format_ct6_session()

u8* format_ct6_session ( u8 s,
va_list *  args 
)

Definition at line 246 of file ct6.c.

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

◆ increment_v6_address()

static void increment_v6_address ( ip6_address_t *  a)
static

Definition at line 346 of file ct6.c.

+ Here is the caller graph for this function:

◆ set_ct6_enable_disable_command_fn()

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

Definition at line 104 of file ct6.c.

+ Here is the call graph for this function:

◆ show_ct6_command_fn_command_fn()

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

Definition at line 294 of file ct6.c.

+ Here is the call graph for this function:

◆ test_ct6_command_fn_command_fn()

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

Definition at line 362 of file ct6.c.

+ Here is the call graph for this function:

◆ vl_api_ct6_enable_disable_t_handler()

static void vl_api_ct6_enable_disable_t_handler ( vl_api_ct6_enable_disable_t mp)
static

Definition at line 168 of file ct6.c.

+ Here is the call graph for this function:

◆ VLIB_PLUGIN_REGISTER()

VLIB_PLUGIN_REGISTER ( )

◆ VNET_FEATURE_INIT() [1/2]

VNET_FEATURE_INIT ( ct6out2in  ,
static   
)

◆ VNET_FEATURE_INIT() [2/2]

VNET_FEATURE_INIT ( ct6in2out  ,
static   
)

Variable Documentation

◆ ct6_main

ct6_main_t ct6_main

Definition at line 33 of file ct6.c.

◆ set_ct6_command

vlib_cli_command_t set_ct6_command
static
Initial value:
=
{
.path = "set ct6",
.short_help =
"set ct6 [inside|outside] <interface-name> [disable]",
}
static clib_error_t * set_ct6_enable_disable_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ct6.c:104

(constructor) VLIB_CLI_COMMAND (set_ct6_command)

Definition at line 157 of file ct6.c.

◆ show_ct6_command_fn_command

vlib_cli_command_t show_ct6_command_fn_command
static
Initial value:
=
{
.path = "show ip6 connection-tracker",
.short_help = "show ip6 connection-tracker",
}
static clib_error_t * show_ct6_command_fn_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ct6.c:294

(constructor) VLIB_CLI_COMMAND (show_ct6_command_fn_command)

Definition at line 337 of file ct6.c.

◆ test_ct6_command_fn_command

vlib_cli_command_t test_ct6_command_fn_command
static
Initial value:
=
{
.path = "test ip6 connection-tracker",
.short_help = "test ip6 connection-tracker",
}
static clib_error_t * test_ct6_command_fn_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ct6.c:362

(constructor) VLIB_CLI_COMMAND (test_ct6_command_fn_command)

Definition at line 469 of file ct6.c.