FD.io VPP  v21.01.1
Vector Packet Processing
in_out_acl.c File Reference
+ Include dependency graph for in_out_acl.c:

Go to the source code of this file.

Functions

static int vnet_in_out_acl_ip_feature_enable (vlib_main_t *vnm, in_out_acl_main_t *am, u32 sw_if_index, in_out_acl_table_id_t tid, int feature_enable, int is_output)
 
int vnet_set_in_out_acl_intfc (vlib_main_t *vm, u32 sw_if_index, u32 ip4_table_index, u32 ip6_table_index, u32 l2_table_index, u32 is_add, u32 is_output)
 
int vnet_set_input_acl_intfc (vlib_main_t *vm, u32 sw_if_index, u32 ip4_table_index, u32 ip6_table_index, u32 l2_table_index, u32 is_add)
 
int vnet_set_output_acl_intfc (vlib_main_t *vm, u32 sw_if_index, u32 ip4_table_index, u32 ip6_table_index, u32 l2_table_index, u32 is_add)
 
static clib_error_tset_in_out_acl_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd, u32 is_output)
 
static clib_error_tset_input_acl_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tset_output_acl_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
clib_error_tin_out_acl_init (vlib_main_t *vm)
 
uword unformat_acl_type (unformat_input_t *input, va_list *args)
 
u8format_vnet_in_out_acl_info (u8 *s, va_list *va)
 
static clib_error_tshow_in_out_acl_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd, u32 is_output)
 
static clib_error_tshow_inacl_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tshow_outacl_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

in_out_acl_main_t in_out_acl_main
 
static vlib_cli_command_t set_input_acl_command
 (constructor) VLIB_CLI_COMMAND (set_input_acl_command) More...
 
static vlib_cli_command_t set_output_acl_command
 (constructor) VLIB_CLI_COMMAND (set_output_acl_command) More...
 
static vlib_cli_command_t show_inacl_command
 (constructor) VLIB_CLI_COMMAND (show_inacl_command) More...
 
static vlib_cli_command_t show_outacl_command
 (constructor) VLIB_CLI_COMMAND (show_outacl_command) More...
 

Function Documentation

◆ format_vnet_in_out_acl_info()

u8* format_vnet_in_out_acl_info ( u8 s,
va_list *  va 
)

Definition at line 291 of file in_out_acl.c.

+ Here is the caller graph for this function:

◆ in_out_acl_init()

clib_error_t* in_out_acl_init ( vlib_main_t vm)

Definition at line 251 of file in_out_acl.c.

+ Here is the call graph for this function:

◆ set_in_out_acl_command_fn()

static clib_error_t* set_in_out_acl_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd,
u32  is_output 
)
static

Definition at line 150 of file in_out_acl.c.

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

◆ set_input_acl_command_fn()

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

Definition at line 208 of file in_out_acl.c.

+ Here is the call graph for this function:

◆ set_output_acl_command_fn()

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

Definition at line 216 of file in_out_acl.c.

+ Here is the call graph for this function:

◆ show_in_out_acl_command_fn()

static clib_error_t* show_in_out_acl_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd,
u32  is_output 
)
static

Definition at line 311 of file in_out_acl.c.

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

◆ show_inacl_command_fn()

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

Definition at line 354 of file in_out_acl.c.

+ Here is the call graph for this function:

◆ show_outacl_command_fn()

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

Definition at line 362 of file in_out_acl.c.

+ Here is the call graph for this function:

◆ unformat_acl_type()

uword unformat_acl_type ( unformat_input_t input,
va_list *  args 
)

Definition at line 269 of file in_out_acl.c.

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

◆ vnet_in_out_acl_ip_feature_enable()

static int vnet_in_out_acl_ip_feature_enable ( vlib_main_t vnm,
in_out_acl_main_t am,
u32  sw_if_index,
in_out_acl_table_id_t  tid,
int  feature_enable,
int  is_output 
)
static

Definition at line 24 of file in_out_acl.c.

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

◆ vnet_set_in_out_acl_intfc()

int vnet_set_in_out_acl_intfc ( vlib_main_t vm,
u32  sw_if_index,
u32  ip4_table_index,
u32  ip6_table_index,
u32  l2_table_index,
u32  is_add,
u32  is_output 
)

Definition at line 70 of file in_out_acl.c.

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

◆ vnet_set_input_acl_intfc()

int vnet_set_input_acl_intfc ( vlib_main_t vm,
u32  sw_if_index,
u32  ip4_table_index,
u32  ip6_table_index,
u32  l2_table_index,
u32  is_add 
)

Definition at line 129 of file in_out_acl.c.

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

◆ vnet_set_output_acl_intfc()

int vnet_set_output_acl_intfc ( vlib_main_t vm,
u32  sw_if_index,
u32  ip4_table_index,
u32  ip6_table_index,
u32  l2_table_index,
u32  is_add 
)

Definition at line 139 of file in_out_acl.c.

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

Variable Documentation

◆ in_out_acl_main

in_out_acl_main_t in_out_acl_main

Definition at line 21 of file in_out_acl.c.

◆ set_input_acl_command

vlib_cli_command_t set_input_acl_command
static
Initial value:
= {
.path = "set interface input acl",
.short_help =
"set interface input acl intfc <int> [ip4-table <index>]\n"
" [ip6-table <index>] [l2-table <index>] [del]",
}
static clib_error_t * set_input_acl_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: in_out_acl.c:208

(constructor) VLIB_CLI_COMMAND (set_input_acl_command)

Definition at line 234 of file in_out_acl.c.

◆ set_output_acl_command

vlib_cli_command_t set_output_acl_command
static
Initial value:
= {
.path = "set interface output acl",
.short_help =
"set interface output acl intfc <int> [ip4-table <index>]\n"
" [ip6-table <index>] [l2-table <index>] [del]",
}
static clib_error_t * set_output_acl_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: in_out_acl.c:216

(constructor) VLIB_CLI_COMMAND (set_output_acl_command)

Definition at line 241 of file in_out_acl.c.

◆ show_inacl_command

vlib_cli_command_t show_inacl_command
static
Initial value:
= {
.path = "show inacl",
.short_help = "show inacl type [ip4|ip6|l2]",
.function = show_inacl_command_fn,
}
static clib_error_t * show_inacl_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: in_out_acl.c:354

(constructor) VLIB_CLI_COMMAND (show_inacl_command)

Definition at line 370 of file in_out_acl.c.

◆ show_outacl_command

vlib_cli_command_t show_outacl_command
static
Initial value:
= {
.path = "show outacl",
.short_help = "show outacl type [ip4|ip6|l2]",
}
static clib_error_t * show_outacl_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: in_out_acl.c:362

(constructor) VLIB_CLI_COMMAND (show_outacl_command)

Definition at line 375 of file in_out_acl.c.