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

Go to the source code of this file.

Functions

static clib_error_tip_checksum_init (vlib_main_t *vm)
 
static clib_error_ttest_ip_checksum_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

ip_csum_t(* vnet_incremental_checksum_fp )(ip_csum_t, void *, uword)
 
static const char test_pkt []
 
static vlib_cli_command_t test_checksum
 (constructor) VLIB_CLI_COMMAND (test_checksum) More...
 

Function Documentation

◆ ip_checksum_init()

static clib_error_t* ip_checksum_init ( vlib_main_t vm)
static

Definition at line 127 of file ip_checksum.c.

◆ test_ip_checksum_fn()

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

Definition at line 144 of file ip_checksum.c.

+ Here is the call graph for this function:

Variable Documentation

◆ test_checksum

vlib_cli_command_t test_checksum
static
Initial value:
=
{
.path = "test ip checksum",
.short_help = "test ip checksum",
.function = test_ip_checksum_fn,
}
static clib_error_t * test_ip_checksum_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ip_checksum.c:144

(constructor) VLIB_CLI_COMMAND (test_checksum)

Definition at line 169 of file ip_checksum.c.

◆ test_pkt

const char test_pkt[]
static
Initial value:
= {
0x45, 0x00, 0x00, 0x3c, 0x5d, 0x6f, 0x40, 0x00,
0x40, 0x06, 0x3f, 0x6b, 0x0a, 0x76, 0x72, 0x44,
0x0a, 0x56, 0x16, 0xd2,
}

Definition at line 137 of file ip_checksum.c.

◆ vnet_incremental_checksum_fp

ip_csum_t(* vnet_incremental_checksum_fp) (ip_csum_t, void *, uword)

Definition at line 124 of file ip_checksum.c.