FD.io VPP  v19.04.4-rc0-5-ge88582fac
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)
 
int vnet_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_alloc()

app_namespace_t* app_namespace_alloc ( u8 ns_id)

Definition at line 53 of file application_namespace.c.

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

◆ app_namespace_get()

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:

◆ app_namespace_get_fib_index()

u32 app_namespace_get_fib_index ( app_namespace_t app_ns,
u8  fib_proto 
)

Definition at line 142 of file application_namespace.c.

+ Here is the caller graph for this function:

◆ app_namespace_get_from_id()

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:

◆ app_namespace_get_local_table()

session_table_t* app_namespace_get_local_table ( app_namespace_t app_ns)

Definition at line 149 of file application_namespace.c.

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

◆ app_namespace_id()

const u8* app_namespace_id ( app_namespace_t app_ns)

Definition at line 117 of file application_namespace.c.

+ Here is the caller graph for this function:

◆ app_namespace_id_from_index()

const u8* app_namespace_id_from_index ( u32  index)

Definition at line 133 of file application_namespace.c.

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

◆ app_namespace_index()

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:

◆ app_namespace_index_from_id()

u32 app_namespace_index_from_id ( const u8 ns_id)

Definition at line 123 of file application_namespace.c.

+ Here is the caller graph for this function:

◆ app_namespaces_init()

void app_namespaces_init ( void  )

Definition at line 155 of file application_namespace.c.

+ Here is the call graph for this function:

◆ app_ns_fn()

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

Definition at line 177 of file application_namespace.c.

+ Here is the call graph for this function:

◆ format_app_namespace()

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:

◆ 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 
)
static

Definition at line 257 of file application_namespace.c.

+ Here is the call graph for this function:

◆ vnet_app_namespace_add_del()

int 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

◆ app_namespace_lookup_table

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_pool

app_namespace_t* app_namespace_pool
static

Pool of application namespaces.

Definition at line 29 of file application_namespace.c.

◆ app_ns_command

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.

◆ show_app_ns_command

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.