FD.io VPP  v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
cli.c File Reference

CLI for Host Interface Device Driver. More...

+ Include dependency graph for cli.c:

Go to the source code of this file.

Functions

static clib_error_taf_packet_create_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_taf_packet_delete_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_taf_packet_set_l4_cksum_offload_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
clib_error_taf_packet_cli_init (vlib_main_t *vm)
 

Variables

static vlib_cli_command_t af_packet_create_command
 (constructor) VLIB_CLI_COMMAND (af_packet_create_command) More...
 
static vlib_cli_command_t af_packet_delete_command
 (constructor) VLIB_CLI_COMMAND (af_packet_delete_command) More...
 
static vlib_cli_command_t af_packet_set_l4_cksum_offload_command
 (constructor) VLIB_CLI_COMMAND (af_packet_set_l4_cksum_offload_command) More...
 

Detailed Description

CLI for Host Interface Device Driver.

This file contains the source code for CLI for the host interface.

Definition in file cli.c.

Function Documentation

◆ af_packet_cli_init()

clib_error_t* af_packet_cli_init ( vlib_main_t vm)

Definition at line 255 of file cli.c.

◆ af_packet_create_command_fn()

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

Definition at line 43 of file cli.c.

+ Here is the call graph for this function:

◆ af_packet_delete_command_fn()

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

Definition at line 141 of file cli.c.

+ Here is the call graph for this function:

◆ af_packet_set_l4_cksum_offload_command_fn()

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

Definition at line 198 of file cli.c.

+ Here is the call graph for this function:

Variable Documentation

◆ af_packet_create_command

vlib_cli_command_t af_packet_create_command
static
Initial value:
= {
.path = "create host-interface",
.short_help = "create host-interface name <ifname> [hw-addr <mac-addr>]",
}
static clib_error_t * af_packet_create_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:43

(constructor) VLIB_CLI_COMMAND (af_packet_create_command)

Definition at line 133 of file cli.c.

◆ af_packet_delete_command

vlib_cli_command_t af_packet_delete_command
static
Initial value:
= {
.path = "delete host-interface",
.short_help = "delete host-interface name <ifname>",
}
static clib_error_t * af_packet_delete_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:141

(constructor) VLIB_CLI_COMMAND (af_packet_delete_command)

Definition at line 190 of file cli.c.

◆ af_packet_set_l4_cksum_offload_command

vlib_cli_command_t af_packet_set_l4_cksum_offload_command
static
Initial value:
= {
.path = "set host-interface l4-cksum-offload",
.short_help = "set host-interface l4-cksum-offload <host-if-name> <on|off>",
}
static clib_error_t * af_packet_set_l4_cksum_offload_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:198

(constructor) VLIB_CLI_COMMAND (af_packet_set_l4_cksum_offload_command)

Definition at line 247 of file cli.c.