Go to the source code of this file.
◆ l2_emulation_cli()
Definition at line 84 of file l2e.c.
◆ l2_emulation_disable()
__clib_export void l2_emulation_disable |
( |
u32 |
sw_if_index | ) |
|
Definition at line 54 of file l2e.c.
◆ l2_emulation_enable()
__clib_export void l2_emulation_enable |
( |
u32 |
sw_if_index | ) |
|
L2 Emulation is a feautre that is applied to L2 ports to 'extract' IP packets from the L2 path and inject them into the L3 path (i.e.
into the appropriate ip[4|6]_input node). L3 routes in the table_id for that interface should then be configured as DVR routes, therefore the forwarded packet has the L2 header preserved and togehter the L3 routed system behaves like an L2 bridge.
Definition at line 32 of file l2e.c.
◆ l2_emulation_init()
◆ l2_emulation_interface_add_del()
Definition at line 69 of file l2e.c.
◆ l2_emulation_show()
◆ VNET_SW_INTERFACE_ADD_DEL_FUNCTION()
◆ ezero
A zero'd out struct we can use in the vec_validate.
Definition at line 29 of file l2e.c.
◆ l2_emulation_cli_node
Initial value:= {
.path = "set interface l2 l2-emulation",
.short_help =
"set interface l2 l2-emulation <interface-name> [disable|enable]\n",
}
(constructor) VLIB_CLI_COMMAND (l2_emulation_cli_node)
Definition at line 125 of file l2e.c.
◆ l2_emulation_main
Definition at line 24 of file l2e.c.
◆ l2_emulation_show_node
Initial value:= {
.path = "show interface l2 l2-emulation",
.short_help = "show interface l2 l2-emulation\n",
}
(constructor) VLIB_CLI_COMMAND (l2_emulation_show_node)
Definition at line 164 of file l2e.c.