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...
|
|
#define foreach_stn_ip_punt_error _(NONE, "no error") |
Enumerator |
---|
ILA_N_ERROR |
|
STN_IP_PUNT_N_ERROR |
|
Definition at line 173 of file stn.c.
Enumerator |
---|
STN_IP_PUNT_DROP |
|
STN_IP_PUNT_N_NEXT |
|
Definition at line 82 of file stn.c.
Definition at line 59 of file stn.c.
u8* format_stn_ip4_punt_trace |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
INDENT-ON
Definition at line 222 of file stn.c.
u8* format_stn_ip6_punt_trace |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
static u8* format_stn_rule |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
Definition at line 40 of file stn.c.
INDENT-ON
Definition at line 257 of file stn.c.
Definition at line 89 of file stn.c.
Add or delete an stn rule.
Definition at line 286 of file stn.c.
VNET_FEATURE_INIT |
( |
stn_ip6_punt_feat_node |
, |
|
|
static |
|
|
) |
| |
VNET_FEATURE_INIT |
( |
stn_ip4_punt_feat_node |
, |
|
|
static |
|
|
) |
| |
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.
u8 stn_hw_addr_dst[6] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x02} |
|
static |
Definition at line 30 of file stn.c.
u8 stn_hw_addr_local[6] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x01} |
|
static |
Definition at line 29 of file stn.c.
Definition at line 32 of file stn.c.
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.
Definition at line 33 of file stn.c.
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.
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.
Definition at line 25 of file stn.c.
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.