FD.io VPP  v18.10-34-gcce845e
Vector Packet Processing
ip_checksum.c File Reference
+ Include dependency graph for ip_checksum.c:

Go to the source code of this file.

Macros

#define IP_INCREMENTAL_CHECKSUM_CLONE_TEMPLATE(arch, fn)
 
#define IP_INCREMENTAL_CHECKSUM_MULTIARCH_CLONE(fn)
 

Functions

 IP_INCREMENTAL_CHECKSUM_MULTIARCH_CLONE (_ip_incremental_checksum)
 
 CLIB_MULTIARCH_SELECT_FN (_ip_incremental_checksum, static inline)
 
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...
 

Macro Definition Documentation

#define IP_INCREMENTAL_CHECKSUM_CLONE_TEMPLATE (   arch,
  fn 
)

Definition at line 124 of file ip_checksum.c.

#define IP_INCREMENTAL_CHECKSUM_MULTIARCH_CLONE (   fn)

Definition at line 125 of file ip_checksum.c.

Function Documentation

CLIB_MULTIARCH_SELECT_FN ( _ip_incremental_checksum  ,
static  inline 
)
static clib_error_t* ip_checksum_init ( vlib_main_t vm)
static

Definition at line 148 of file ip_checksum.c.

IP_INCREMENTAL_CHECKSUM_MULTIARCH_CLONE ( _ip_incremental_checksum  )
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 165 of file ip_checksum.c.

+ Here is the call graph for this function:

Variable Documentation

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:165

(constructor) VLIB_CLI_COMMAND (test_checksum)

Definition at line 190 of file ip_checksum.c.

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 158 of file ip_checksum.c.

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

Definition at line 145 of file ip_checksum.c.