FD.io VPP  v19.08.2-294-g37e99c22d
Vector Packet Processing
api_main.c File Reference
+ Include dependency graph for api_main.c:

Go to the source code of this file.

Functions

void vat_suspend (vlib_main_t *vm, f64 interval)
 
static u8format_api_error (u8 *s, va_list *args)
 
static void init_error_string_table (vat_main_t *vam)
 
static clib_error_tapi_main_init (vlib_main_t *vm)
 
void vat_plugin_hash_create (void)
 
static void maybe_register_api_client (vat_main_t *vam)
 
static clib_error_tapi_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
void api_cli_output (void *notused, const char *fmt,...)
 
u16 vl_client_get_first_plugin_msg_id (const char *plugin_name)
 
uword unformat_sw_if_index (unformat_input_t *input, va_list *args)
 

Variables

vat_main_t vat_main
 
static vlib_cli_command_t api_command
 (constructor) VLIB_CLI_COMMAND (api_command) More...
 

Function Documentation

◆ api_cli_output()

void api_cli_output ( void *  notused,
const char *  fmt,
  ... 
)

Definition at line 236 of file api_main.c.

+ Here is the call graph for this function:

◆ api_command_fn()

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

Definition at line 119 of file api_main.c.

+ Here is the call graph for this function:

◆ api_main_init()

static clib_error_t* api_main_init ( vlib_main_t vm)
static

Definition at line 42 of file api_main.c.

+ Here is the call graph for this function:

◆ format_api_error()

static u8* format_api_error ( u8 s,
va_list *  args 
)
static

Definition at line 12 of file api_main.c.

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

◆ init_error_string_table()

static void init_error_string_table ( vat_main_t *  vam)
static

Definition at line 29 of file api_main.c.

+ Here is the caller graph for this function:

◆ maybe_register_api_client()

static void maybe_register_api_client ( vat_main_t *  vam)
static

Definition at line 75 of file api_main.c.

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

◆ unformat_sw_if_index()

uword unformat_sw_if_index ( unformat_input_t input,
va_list *  args 
)

Definition at line 277 of file api_main.c.

+ Here is the call graph for this function:

◆ vat_plugin_hash_create()

void vat_plugin_hash_create ( void  )

Definition at line 65 of file api_main.c.

+ Here is the caller graph for this function:

◆ vat_suspend()

void vat_suspend ( vlib_main_t vm,
f64  interval 
)

Definition at line 6 of file api_main.c.

+ Here is the call graph for this function:

◆ vl_client_get_first_plugin_msg_id()

u16 vl_client_get_first_plugin_msg_id ( const char *  plugin_name)

Definition at line 261 of file api_main.c.

Variable Documentation

◆ api_command

vlib_cli_command_t api_command
static
Initial value:
=
{
.path = "binary-api",
.short_help = "binary-api [help] <name> [<args>]",
.function = api_command_fn,
.is_mp_safe = 1,
}
static clib_error_t * api_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: api_main.c:119

(constructor) VLIB_CLI_COMMAND (api_command)

Definition at line 226 of file api_main.c.

◆ vat_main

vat_main_t vat_main

Definition at line 3 of file api_main.c.