Go to the source code of this file.
|
static void | feature_init (mactime_main_t *mm) |
|
int | mactime_enable_disable (mactime_main_t *mm, u32 sw_if_index, int enable_disable) |
| Action function shared between message handler and debug CLI. More...
|
|
static clib_error_t * | mactime_enable_disable_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static void | vl_api_mactime_enable_disable_t_handler (vl_api_mactime_enable_disable_t *mp) |
| Enable / disable time-base src mac filtration on an interface. More...
|
|
void | mactime_send_create_entry_message (u8 *mac_address) |
| Create a lookup table entry for the indicated mac address. More...
|
|
static void | vl_api_mactime_add_del_range_t_handler (vl_api_mactime_add_del_range_t *mp) |
| Add or delete static / dynamic accept/drop configuration for a src mac. More...
|
|
static clib_error_t * | mactime_plugin_api_hookup (vlib_main_t *vm) |
|
static void | setup_message_id_table (mactime_main_t *mm, api_main_t *am) |
|
static clib_error_t * | mactime_init (vlib_main_t *vm) |
|
static clib_error_t * | mactime_config (vlib_main_t *vm, unformat_input_t *input) |
|
| VNET_FEATURE_INIT (mactime, static) |
|
| VNET_FEATURE_INIT (mactime_tx, static) |
|
| VLIB_PLUGIN_REGISTER () |
|
static clib_error_t * | show_mactime_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static clib_error_t * | clear_mactime_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
◆ foreach_mactime_plugin_api_msg
#define foreach_mactime_plugin_api_msg |
Value:_(MACTIME_ADD_DEL_RANGE, mactime_add_del_range)
int mactime_enable_disable(mactime_main_t *mm, u32 sw_if_index, int enable_disable)
Action function shared between message handler and debug CLI.
Definition at line 60 of file mactime.c.
◆ REPLY_MSG_ID_BASE
◆ vl_api_version
#define vl_api_version |
( |
|
n, |
|
|
|
v |
|
) |
| static u32 api_version=(v); |
◆ vl_endianfun
◆ vl_msg_name_crc_list
#define vl_msg_name_crc_list |
◆ vl_print
◆ vl_printfun
◆ vl_typedefs
◆ clear_mactime_command_fn()
◆ feature_init()
◆ mactime_config()
◆ mactime_enable_disable()
int mactime_enable_disable |
( |
mactime_main_t * |
mm, |
|
|
u32 |
sw_if_index, |
|
|
int |
enable_disable |
|
) |
| |
Action function shared between message handler and debug CLI.
Definition at line 86 of file mactime.c.
◆ mactime_enable_disable_command_fn()
◆ mactime_init()
◆ mactime_plugin_api_hookup()
◆ mactime_send_create_entry_message()
void mactime_send_create_entry_message |
( |
u8 * |
mac_address | ) |
|
Create a lookup table entry for the indicated mac address.
Definition at line 191 of file mactime.c.
◆ setup_message_id_table()
◆ show_mactime_command_fn()
◆ vl_api_mactime_add_del_range_t_handler()
Add or delete static / dynamic accept/drop configuration for a src mac.
Definition at line 218 of file mactime.c.
◆ vl_api_mactime_enable_disable_t_handler()
Enable / disable time-base src mac filtration on an interface.
Definition at line 174 of file mactime.c.
◆ VLIB_PLUGIN_REGISTER()
◆ VNET_FEATURE_INIT() [1/2]
VNET_FEATURE_INIT |
( |
mactime |
, |
|
|
static |
|
|
) |
| |
◆ VNET_FEATURE_INIT() [2/2]
VNET_FEATURE_INIT |
( |
mactime_tx |
, |
|
|
static |
|
|
) |
| |
◆ clear_mactime_command
Initial value:=
{
.path = "clear mactime",
.short_help = "clear mactime counters",
}
static clib_error_t * clear_mactime_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (clear_mactime_command)
Definition at line 594 of file mactime.c.
◆ mactime_enable_disable_command
Initial value:=
{
.path = "mactime enable-disable",
.short_help =
"mactime enable-disable <interface-name> [disable]",
}
static clib_error_t * mactime_enable_disable_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (mactime_enable_disable_command)
Definition at line 160 of file mactime.c.
◆ mactime_main
◆ show_mactime_command
Initial value:=
{
.path = "show mactime",
.short_help = "show mactime [verbose]",
}
static clib_error_t * show_mactime_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (show_mactime_command)
Definition at line 570 of file mactime.c.