![]() |
FD.io VPP
v20.05-21-gb1500e9ff
Vector Packet Processing
|
Loopback Interfaces. More...
Go to the source code of this file.
Macros | |
#define | LOOPBACK_MAX_INSTANCE (16 * 1024) |
Variables | |
static vlib_cli_command_t | create_simulated_ethernet_interface_command |
(constructor) VLIB_CLI_COMMAND (create_simulated_ethernet_interface_command) More... | |
static vlib_cli_command_t | create_loopback_interface_command |
(constructor) VLIB_CLI_COMMAND (create_loopback_interface_command) More... | |
static vlib_cli_command_t | delete_simulated_ethernet_interface_command |
(constructor) VLIB_CLI_COMMAND (delete_simulated_ethernet_interface_command) More... | |
static vlib_cli_command_t | delete_loopback_interface_command |
(constructor) VLIB_CLI_COMMAND (delete_loopback_interface_command) More... | |
static vlib_cli_command_t | delete_sub_interface_command |
(constructor) VLIB_CLI_COMMAND (delete_sub_interface_command) More... | |
Loopback Interfaces.
This file contains code to manage loopback interfaces.
Definition in file interface.c.
#define LOOPBACK_MAX_INSTANCE (16 * 1024) |
Definition at line 746 of file interface.c.
|
static |
|
static |
|
static |
u8* ethernet_build_rewrite | ( | vnet_main_t * | vnm, |
u32 | sw_if_index, | ||
vnet_link_t | link_type, | ||
const void * | dst_address | ||
) |
build a rewrite string to use for sending packets of type 'link_type' to 'dst_address'
Definition at line 83 of file interface.c.
|
static |
void ethernet_delete_interface | ( | vnet_main_t * | vnm, |
u32 | hw_if_index | ||
) |
Definition at line 378 of file interface.c.
ethernet_interface_t* ethernet_get_interface | ( | ethernet_main_t * | em, |
u32 | hw_if_index | ||
) |
Definition at line 967 of file interface.c.
mac_address_t* ethernet_interface_add_del_address | ( | ethernet_main_t * | em, |
u32 | hw_if_index, | ||
const u8 * | address, | ||
u8 | is_add | ||
) |
Definition at line 977 of file interface.c.
|
static |
|
static |
|
static |
clib_error_t* ethernet_register_interface | ( | vnet_main_t * | vnm, |
u32 | dev_class_index, | ||
u32 | dev_instance, | ||
const u8 * | address, | ||
u32 * | hw_if_index_return, | ||
ethernet_flag_change_function_t | flag_change | ||
) |
Definition at line 331 of file interface.c.
u32 ethernet_set_flags | ( | vnet_main_t * | vnm, |
u32 | hw_if_index, | ||
u32 | flags | ||
) |
Definition at line 426 of file interface.c.
void ethernet_update_adjacency | ( | vnet_main_t * | vnm, |
u32 | sw_if_index, | ||
u32 | ai | ||
) |
Definition at line 198 of file interface.c.
Definition at line 707 of file interface.c.
Definition at line 749 of file interface.c.
|
static |
Definition at line 796 of file interface.c.
|
static |
Definition at line 714 of file interface.c.
|
static |
Echo packets back to ethernet/l2-input.
Definition at line 474 of file interface.c.
|
static |
uword unformat_ethernet_interface | ( | unformat_input_t * | input, |
va_list * | args | ||
) |
Definition at line 310 of file interface.c.
int vnet_create_loopback_interface | ( | u32 * | sw_if_indexp, |
u8 * | mac_address, | ||
u8 | is_specified, | ||
u32 | user_instance | ||
) |
Definition at line 816 of file interface.c.
int vnet_create_sub_interface | ( | u32 | sw_if_index, |
u32 | id, | ||
u32 | flags, | ||
u16 | inner_vlan_id, | ||
u16 | outer_vlan_id, | ||
u32 * | sub_sw_if_index | ||
) |
Definition at line 1044 of file interface.c.
int vnet_delete_loopback_interface | ( | u32 | sw_if_index | ) |
Definition at line 1024 of file interface.c.
int vnet_delete_sub_interface | ( | u32 | sw_if_index | ) |
Definition at line 1086 of file interface.c.
VNET_DEVICE_CLASS | ( | ethernet_simulated_device_class | ) |
VNET_HW_INTERFACE_CLASS | ( | ethernet_hw_interface_class | ) |
|
static |
(constructor) VLIB_CLI_COMMAND (create_loopback_interface_command)
Definition at line 959 of file interface.c.
|
static |
(constructor) VLIB_CLI_COMMAND (create_simulated_ethernet_interface_command)
Definition at line 940 of file interface.c.
|
static |
(constructor) VLIB_CLI_COMMAND (delete_loopback_interface_command)
Definition at line 1200 of file interface.c.
|
static |
(constructor) VLIB_CLI_COMMAND (delete_simulated_ethernet_interface_command)
Definition at line 1182 of file interface.c.
|
static |
(constructor) VLIB_CLI_COMMAND (delete_sub_interface_command)
Definition at line 1215 of file interface.c.