FD.io VPP
v20.09-64-g4f7b92f0a
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | l2_emulation_t_ |
Per-interface L2 configuration. More... | |
struct | l2_emulation_trace_t_ |
per-packet trace data More... | |
struct | l2_emulation_main_t_ |
Grouping of global data for the L2 emulation feature. More... | |
Typedefs | |
typedef struct l2_emulation_t_ | l2_emulation_t |
Per-interface L2 configuration. More... | |
typedef struct l2_emulation_trace_t_ | l2_emulation_trace_t |
per-packet trace data More... | |
typedef struct l2_emulation_main_t_ | l2_emulation_main_t |
Grouping of global data for the L2 emulation feature. More... | |
Functions | |
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. More... | |
void | l2_emulation_disable (u32 sw_if_index) |
Variables | |
l2_emulation_main_t | l2_emulation_main |
typedef struct l2_emulation_main_t_ l2_emulation_main_t |
Grouping of global data for the L2 emulation feature.
typedef struct l2_emulation_t_ l2_emulation_t |
Per-interface L2 configuration.
typedef struct l2_emulation_trace_t_ l2_emulation_trace_t |
per-packet trace data
void l2_emulation_disable | ( | u32 | sw_if_index | ) |
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 31 of file l2e.c.
l2_emulation_main_t l2_emulation_main |