FD.io VPP  v18.04-17-g3a0d853
Vector Packet Processing
application_namespace.c File Reference
+ Include dependency graph for application_namespace.c:

Go to the source code of this file.

Functions

app_namespace_tapp_namespace_get (u32 index)
 
app_namespace_tapp_namespace_get_from_id (const u8 *ns_id)
 
u32 app_namespace_index (app_namespace_t *app_ns)
 
app_namespace_tapp_namespace_alloc (u8 *ns_id)
 
clib_error_tvnet_app_namespace_add_del (vnet_app_namespace_add_del_args_t *a)
 
const u8app_namespace_id (app_namespace_t *app_ns)
 
u32 app_namespace_index_from_id (const u8 *ns_id)
 
const u8app_namespace_id_from_index (u32 index)
 
u32 app_namespace_get_fib_index (app_namespace_t *app_ns, u8 fib_proto)
 
session_table_tapp_namespace_get_local_table (app_namespace_t *app_ns)
 
void app_namespaces_init (void)
 
static clib_error_tapp_ns_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
u8format_app_namespace (u8 *s, va_list *args)
 
static clib_error_tshow_app_ns_fn (vlib_main_t *vm, unformat_input_t *main_input, vlib_cli_command_t *cmd)
 

Variables

uwordapp_namespace_lookup_table
 Hash table of application namespaces by app ns ids. More...
 
static app_namespace_tapp_namespace_pool
 Pool of application namespaces. More...
 
static vlib_cli_command_t app_ns_command
 (constructor) VLIB_CLI_COMMAND (app_ns_command) More...
 
static vlib_cli_command_t show_app_ns_command
 (constructor) VLIB_CLI_COMMAND (show_app_ns_command) More...
 

Function Documentation

app_namespace_t* app_namespace_alloc ( u8 ns_id)

Definition at line 53 of file application_namespace.c.

+ Here is the caller graph for this function:

app_namespace_t* app_namespace_get ( u32  index)

Definition at line 32 of file application_namespace.c.

+ Here is the caller graph for this function:

u32 app_namespace_get_fib_index ( app_namespace_t app_ns,
u8  fib_proto 
)

Definition at line 144 of file application_namespace.c.

+ Here is the caller graph for this function:

app_namespace_t* app_namespace_get_from_id ( const u8 ns_id)

Definition at line 38 of file application_namespace.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

session_table_t* app_namespace_get_local_table ( app_namespace_t app_ns)

Definition at line 151 of file application_namespace.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const u8* app_namespace_id ( app_namespace_t app_ns)

Definition at line 119 of file application_namespace.c.

+ Here is the caller graph for this function:

const u8* app_namespace_id_from_index ( u32  index)

Definition at line 135 of file application_namespace.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 app_namespace_index ( app_namespace_t app_ns)

Definition at line 47 of file application_namespace.c.

+ Here is the caller graph for this function:

u32 app_namespace_index_from_id ( const u8 ns_id)

Definition at line 125 of file application_namespace.c.

+ Here is the caller graph for this function:

void app_namespaces_init ( void  )

Definition at line 157 of file application_namespace.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 179 of file application_namespace.c.

+ Here is the call graph for this function:

u8* format_app_namespace ( u8 s,
va_list *  args 
)

Definition at line 248 of file application_namespace.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* show_app_ns_fn ( vlib_main_t vm,
unformat_input_t main_input,
vlib_cli_command_t cmd 
)
static

Definition at line 257 of file application_namespace.c.

+ Here is the call graph for this function:

clib_error_t* vnet_app_namespace_add_del ( vnet_app_namespace_add_del_args_t a)

Definition at line 65 of file application_namespace.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

uword* app_namespace_lookup_table

Hash table of application namespaces by app ns ids.

Definition at line 24 of file application_namespace.c.

app_namespace_t* app_namespace_pool
static

Pool of application namespaces.

Definition at line 29 of file application_namespace.c.

vlib_cli_command_t app_ns_command
static
Initial value:
=
{
.path = "app ns",
.short_help = "app ns [add] id <namespace-id> secret <secret> "
"sw_if_index <sw_if_index>",
.function = app_ns_fn,
}
static clib_error_t * app_ns_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)

(constructor) VLIB_CLI_COMMAND (app_ns_command)

Definition at line 238 of file application_namespace.c.

vlib_cli_command_t show_app_ns_command
static
Initial value:
=
{
.path = "show app ns",
.short_help = "show app ns",
.function = show_app_ns_fn,
}
static clib_error_t * show_app_ns_fn(vlib_main_t *vm, unformat_input_t *main_input, vlib_cli_command_t *cmd)

(constructor) VLIB_CLI_COMMAND (show_app_ns_command)

Definition at line 321 of file application_namespace.c.