FD.io VPP  v19.08.1-401-g8e4ed521a
Vector Packet Processing
ct6.c File Reference
+ Include dependency graph for ct6.c:

Go to the source code of this file.

Macros

#define vl_typedefs
 
#define vl_endianfun
 
#define vl_print(handle, ...)   vlib_cli_output (handle, __VA_ARGS__)
 
#define vl_printfun
 
#define vl_api_version(n, v)   static u32 api_version=(v);
 
#define REPLY_MSG_ID_BASE   cmp->msg_id_base
 
#define foreach_ct6_plugin_api_msg   _(CT6_ENABLE_DISABLE, ct6_enable_disable)
 
#define vl_msg_name_crc_list
 

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_plugin_api_hookup (vlib_main_t *vm)
 
static void setup_message_id_table (ct6_main_t *cmp, api_main_t *am)
 
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

◆ foreach_ct6_plugin_api_msg

#define foreach_ct6_plugin_api_msg   _(CT6_ENABLE_DISABLE, ct6_enable_disable)

Definition at line 57 of file ct6.c.

◆ REPLY_MSG_ID_BASE

#define REPLY_MSG_ID_BASE   cmp->msg_id_base

Definition at line 50 of file ct6.c.

◆ vl_api_version

#define vl_api_version (   n,
 
)    static u32 api_version=(v);

Definition at line 46 of file ct6.c.

◆ vl_endianfun

#define vl_endianfun

Definition at line 35 of file ct6.c.

◆ vl_msg_name_crc_list

#define vl_msg_name_crc_list

Definition at line 231 of file ct6.c.

◆ vl_print

#define vl_print (   handle,
  ... 
)    vlib_cli_output (handle, __VA_ARGS__)

Definition at line 40 of file ct6.c.

◆ vl_printfun

#define vl_printfun

Definition at line 41 of file ct6.c.

◆ vl_typedefs

#define vl_typedefs

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 544 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 63 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 79 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 244 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 104 of file ct6.c.

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

◆ ct6_plugin_api_hookup()

static clib_error_t* ct6_plugin_api_hookup ( vlib_main_t vm)
static

Definition at line 214 of file ct6.c.

+ Here is the caller graph for this function:

◆ format_ct6_session()

u8* format_ct6_session ( u8 s,
va_list *  args 
)

Definition at line 312 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 412 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 129 of file ct6.c.

+ Here is the call graph for this function:

◆ setup_message_id_table()

static void setup_message_id_table ( ct6_main_t cmp,
api_main_t am 
)
static

Definition at line 236 of file ct6.c.

+ Here is the caller 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 360 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 428 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 193 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 53 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:129

(constructor) VLIB_CLI_COMMAND (set_ct6_command)

Definition at line 182 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:360

(constructor) VLIB_CLI_COMMAND (show_ct6_command_fn_command)

Definition at line 403 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:428

(constructor) VLIB_CLI_COMMAND (test_ct6_command_fn_command)

Definition at line 535 of file ct6.c.