FD.io VPP  v16.09
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 201 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 50 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 37 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 236 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 492 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 416 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 136 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 116 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 162 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:201

(constructor) VLIB_CLI_COMMAND (clear_counters_command)

Definition at line 228 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:236

(constructor) VLIB_CLI_COMMAND (l2tp_session_add_command)

Definition at line 407 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:492

(constructor) VLIB_CLI_COMMAND (l2tp_session_cookie_command)

Definition at line 543 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:416

(constructor) VLIB_CLI_COMMAND (l2tp_session_del_command)

Definition at line 483 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:136

(constructor) VLIB_CLI_COMMAND (show_session_detail_command)

Definition at line 154 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:116

(constructor) VLIB_CLI_COMMAND (show_session_summary_command)

Definition at line 128 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:162

(constructor) VLIB_CLI_COMMAND (test_counters_command)

Definition at line 193 of file l2t.c.