Go to the source code of this file.
|
static u8 * | format_stn_rule (u8 *s, va_list *args) |
|
static_always_inline u8 * | format_stn_ip46_punt_trace (u8 *s, va_list *args, u8 is_ipv4) |
|
static_always_inline uword | stn_ip46_punt_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, u8 is_ipv4) |
|
u8 * | format_stn_ip6_punt_trace (u8 *s, va_list *args) |
|
static uword | stn_ip6_punt_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
| VNET_FEATURE_INIT (stn_ip6_punt_feat_node, static) |
|
u8 * | format_stn_ip4_punt_trace (u8 *s, va_list *args) |
| INDENT-ON More...
|
|
static uword | stn_ip4_punt_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
| VNET_FEATURE_INIT (stn_ip4_punt_feat_node, static) |
|
clib_error_t * | stn_init (vlib_main_t *vm) |
| INDENT-ON More...
|
|
| VLIB_PLUGIN_REGISTER () |
|
int | stn_rule_add_del (stn_rule_add_del_args_t *args) |
| Add or delete an stn rule. More...
|
|
static clib_error_t * | show_stn_rules_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static clib_error_t * | stn_rule_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
|
stn_main_t | stn_main |
|
static vlib_node_registration_t | stn_ip4_punt |
| INDENT-OFF More...
|
|
static vlib_node_registration_t | stn_ip6_punt |
| INDENT-OFF More...
|
|
static u8 | stn_hw_addr_local [6] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x01} |
|
static u8 | stn_hw_addr_dst [6] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x02} |
|
static ethernet_header_t | stn_ip4_ethernet_header = {} |
|
static ethernet_header_t | stn_ip6_ethernet_header = {} |
|
static char * | stn_ip_punt_error_strings [] |
|
static vlib_cli_command_t | show_stn_rules_command |
| (constructor) VLIB_CLI_COMMAND (show_stn_rules_command) More...
|
|
static vlib_cli_command_t | stn_rule_command |
| (constructor) VLIB_CLI_COMMAND (stn_rule_command) More...
|
|
◆ foreach_stn_ip_punt_error
#define foreach_stn_ip_punt_error _(NONE, "no error") |
◆ ila_error_t
Enumerator |
---|
ILA_N_ERROR | |
STN_IP_PUNT_N_ERROR | |
Definition at line 173 of file stn.c.
◆ stn_ip_punt_next_t
Enumerator |
---|
STN_IP_PUNT_DROP | |
STN_IP_PUNT_N_NEXT | |
Definition at line 82 of file stn.c.
◆ format_stn_ip46_punt_trace()
Definition at line 59 of file stn.c.
◆ format_stn_ip4_punt_trace()
u8* format_stn_ip4_punt_trace |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
INDENT-ON
Definition at line 222 of file stn.c.
◆ format_stn_ip6_punt_trace()
u8* format_stn_ip6_punt_trace |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
◆ format_stn_rule()
static u8* format_stn_rule |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
Definition at line 40 of file stn.c.
◆ show_stn_rules_fn()
◆ stn_init()
INDENT-ON
Definition at line 257 of file stn.c.
◆ stn_ip46_punt_fn()
Definition at line 89 of file stn.c.
◆ stn_ip4_punt_fn()
◆ stn_ip6_punt_fn()
◆ stn_rule_add_del()
Add or delete an stn rule.
Definition at line 286 of file stn.c.
◆ stn_rule_fn()
◆ VLIB_PLUGIN_REGISTER()
◆ VNET_FEATURE_INIT() [1/2]
VNET_FEATURE_INIT |
( |
stn_ip6_punt_feat_node |
, |
|
|
static |
|
|
) |
| |
◆ VNET_FEATURE_INIT() [2/2]
VNET_FEATURE_INIT |
( |
stn_ip4_punt_feat_node |
, |
|
|
static |
|
|
) |
| |
◆ show_stn_rules_command
Initial value:=
{
.path = "show stn rules",
.short_help = "",
}
static clib_error_t * show_stn_rules_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (show_stn_rules_command)
Definition at line 379 of file stn.c.
◆ stn_hw_addr_dst
u8 stn_hw_addr_dst[6] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x02} |
|
static |
Definition at line 30 of file stn.c.
◆ stn_hw_addr_local
u8 stn_hw_addr_local[6] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x01} |
|
static |
Definition at line 29 of file stn.c.
◆ stn_ip4_ethernet_header
Definition at line 32 of file stn.c.
◆ stn_ip4_punt
Initial value:=
{
.name = "stn-ip4-punt",
.vector_size =
sizeof (
u32),
.next_nodes =
{
},
}
static uword stn_ip4_punt_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
static char * stn_ip_punt_error_strings[]
u8 * format_stn_ip4_punt_trace(u8 *s, va_list *args)
INDENT-ON
INDENT-OFF
(constructor) VLIB_REGISTER_NODE (stn_ip4_punt)
Definition at line 26 of file stn.c.
◆ stn_ip6_ethernet_header
Definition at line 33 of file stn.c.
◆ stn_ip6_punt
Initial value:=
{
.name = "stn-ip6-punt",
.vector_size =
sizeof (
u32),
.next_nodes =
{
},
}
static char * stn_ip_punt_error_strings[]
static uword stn_ip6_punt_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
u8 * format_stn_ip6_punt_trace(u8 *s, va_list *args)
INDENT-OFF
(constructor) VLIB_REGISTER_NODE (stn_ip6_punt)
Definition at line 27 of file stn.c.
◆ stn_ip_punt_error_strings
char* stn_ip_punt_error_strings[] |
|
static |
Initial value:= {
#define _(sym,string)
}
#define foreach_stn_ip_punt_error
Definition at line 180 of file stn.c.
◆ stn_main
Definition at line 25 of file stn.c.
◆ stn_rule_command
Initial value:=
{
.path = "stn rule",
.short_help = "address <addr> interface <iface> [del]",
}
static clib_error_t * stn_rule_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (stn_rule_command)
Definition at line 442 of file stn.c.