FD.io VPP  v16.06
Vector Packet Processing
l2t.c File Reference
+ Include dependency graph for l2t.c:

Go to the source code of this file.

Functions

void get_interface_ethernet_address (l2t_main_t *lm, u8 *dst, u32 sw_if_index)
 
u8format_l2t_trace (u8 *s, va_list *args)
 
u8format_l2t_session (u8 *s, va_list *args)
 
static clib_error_tshow_session_summary_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tshow_session_detail_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_ttest_counters_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tclear_counters_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tl2tp_session_add_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tl2tp_session_del_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tl2tp_session_cookie_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

l2t_main_t l2t_main
 
static vlib_cli_command_t show_session_summary_command
 (constructor) VLIB_CLI_COMMAND (show_session_summary_command) More...
 
static vlib_cli_command_t show_session_detail_command
 (constructor) VLIB_CLI_COMMAND (show_session_detail_command) More...
 
static vlib_cli_command_t test_counters_command
 (constructor) VLIB_CLI_COMMAND (test_counters_command) More...
 
static vlib_cli_command_t clear_counters_command
 (constructor) VLIB_CLI_COMMAND (clear_counters_command) More...
 
static vlib_cli_command_t l2tp_session_add_command
 (constructor) VLIB_CLI_COMMAND (l2tp_session_add_command) More...
 
static vlib_cli_command_t l2tp_session_del_command
 (constructor) VLIB_CLI_COMMAND (l2tp_session_del_command) More...
 
static vlib_cli_command_t l2tp_session_cookie_command
 (constructor) VLIB_CLI_COMMAND (l2tp_session_cookie_command) More...
 

Function Documentation

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

Definition at line 192 of file l2t.c.

+ Here is the call graph for this function:

u8* format_l2t_session ( u8 s,
va_list *  args 
)

Definition at line 68 of file l2t.c.

+ Here is the call graph for this function:

u8* format_l2t_trace ( u8 s,
va_list *  args 
)

Definition at line 49 of file l2t.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void get_interface_ethernet_address ( l2t_main_t lm,
u8 dst,
u32  sw_if_index 
)

Definition at line 36 of file l2t.c.

+ Here is the call graph for this function:

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

Definition at line 225 of file l2t.c.

+ Here is the call graph for this function:

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

Definition at line 466 of file l2t.c.

+ Here is the call graph for this function:

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

Definition at line 397 of file l2t.c.

+ Here is the call graph for this function:

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

Definition at line 133 of file l2t.c.

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

Definition at line 115 of file l2t.c.

+ Here is the call graph for this function:

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

Definition at line 155 of file l2t.c.

+ Here is the call graph for this function:

Variable Documentation

vlib_cli_command_t clear_counters_command
static
Initial value:
= {
.path = "clear counters",
.short_help = "clear all active counters",
}
static clib_error_t * clear_counters_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: l2t.c:192

(constructor) VLIB_CLI_COMMAND (clear_counters_command)

Definition at line 218 of file l2t.c.

l2t_main_t l2t_main

Definition at line 29 of file l2t.c.

vlib_cli_command_t l2tp_session_add_command
static
Initial value:
= {
.path = "l2tp session add",
.short_help =
"l2tp session add client <ip6> our <ip6> vlan <id> local-cookie <hex> remote-cookie <hex> local-session <dec> remote-session <dec> l2-interface <int>",
}
static clib_error_t * l2tp_session_add_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: l2t.c:225

(constructor) VLIB_CLI_COMMAND (l2tp_session_add_command)

Definition at line 389 of file l2t.c.

vlib_cli_command_t l2tp_session_cookie_command
static
Initial value:
= {
.path = "l2tp session cookie",
.short_help =
"l2tp session cookie <session id> commit|rollover [local <hex>] [remote <hex>]",
}
static clib_error_t * l2tp_session_cookie_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: l2t.c:466

(constructor) VLIB_CLI_COMMAND (l2tp_session_cookie_command)

Definition at line 511 of file l2t.c.

vlib_cli_command_t l2tp_session_del_command
static
Initial value:
= {
.path = "l2tp session delete",
.short_help =
"l2tp session delete <session-id>",
}
static clib_error_t * l2tp_session_del_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: l2t.c:397

(constructor) VLIB_CLI_COMMAND (l2tp_session_del_command)

Definition at line 458 of file l2t.c.

vlib_cli_command_t show_session_detail_command
static
Initial value:
= {
.path = "show session detail",
.short_help = "show session table detail",
}
static clib_error_t * show_session_detail_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: l2t.c:133

(constructor) VLIB_CLI_COMMAND (show_session_detail_command)

Definition at line 148 of file l2t.c.

vlib_cli_command_t show_session_summary_command
static
Initial value:
= {
.path = "show session",
.short_help = "show session summary",
}
static clib_error_t * show_session_summary_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: l2t.c:115

(constructor) VLIB_CLI_COMMAND (show_session_summary_command)

Definition at line 126 of file l2t.c.

vlib_cli_command_t test_counters_command
static
Initial value:
= {
.path = "test counters",
.short_help = "increment all active counters",
}
static clib_error_t * test_counters_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: l2t.c:155

(constructor) VLIB_CLI_COMMAND (test_counters_command)

Definition at line 185 of file l2t.c.