FD.io VPP  v20.01-48-g3e0dafb74
Vector Packet Processing
version.c File Reference

Display image version information. More...

+ Include dependency graph for version.c:

Go to the source code of this file.

Functions

static clib_error_tshow_vpe_version_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 Display image version info, a debug CLI command function. More...
 
char * vpe_api_get_build_directory (void)
 Return the image build directory name. More...
 
char * vpe_api_get_version (void)
 Return the image version string. More...
 
char * vpe_api_get_build_date (void)
 return the build date More...
 

Variables

char * vpe_version_string
 The image version string. More...
 
static char * vpe_compiler
 The name of the compiler. More...
 
static vlib_cli_command_t show_vpe_version_command
 (constructor) VLIB_CLI_COMMAND (show_vpe_version_command) More...
 

Detailed Description

Display image version information.

Definition in file version.c.

Function Documentation

◆ show_vpe_version_command_fn()

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

Display image version info, a debug CLI command function.

Definition at line 54 of file version.c.

+ Here is the call graph for this function:

◆ vpe_api_get_build_date()

char* vpe_api_get_build_date ( void  )

return the build date

Definition at line 161 of file version.c.

+ Here is the caller graph for this function:

◆ vpe_api_get_build_directory()

char* vpe_api_get_build_directory ( void  )

Return the image build directory name.

Definition at line 147 of file version.c.

+ Here is the caller graph for this function:

◆ vpe_api_get_version()

char* vpe_api_get_version ( void  )

Return the image version string.

Definition at line 154 of file version.c.

+ Here is the caller graph for this function:

Variable Documentation

◆ show_vpe_version_command

vlib_cli_command_t show_vpe_version_command
static
Initial value:
= {
.path = "show version",
.short_help = "show version [verbose] [cmdline]",
.is_mp_safe = 1,
}
static clib_error_t * show_vpe_version_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Display image version info, a debug CLI command function.
Definition: version.c:54

(constructor) VLIB_CLI_COMMAND (show_vpe_version_command)

Definition at line 137 of file version.c.

◆ vpe_compiler

char* vpe_compiler
static
Initial value:
=
"unknown compiler"

The name of the compiler.

Definition at line 36 of file version.c.

◆ vpe_version_string

char* vpe_version_string
Initial value:
=
"vpp v" VPP_BUILD_VER
" built by " VPP_BUILD_USER " on " VPP_BUILD_HOST " at " VPP_BUILD_DATE

The image version string.

Definition at line 31 of file version.c.