FD.io VPP  v18.07-rc0-415-g6c78436
Vector Packet Processing
l2e.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 Cisco and/or its affiliates.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at:
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef included_vnet_l2_emulation_h
17 #define included_vnet_l2_emulation_h
18 
19 #include <vlib/vlib.h>
20 #include <vnet/vnet.h>
21 
22 /**
23  * L2 Emulation is a feautre that is applied to L2 ports to 'extract'
24  * IP packets from the L2 path and inject them into the L3 path (i.e.
25  * into the appropriate ip[4|6]_input node).
26  * L3 routes in the table_id for that interface should then be configured
27  * as DVR routes, therefore the forwarded packet has the L2 header
28  * preserved and togehter the L3 routed system behaves like an L2 bridge.
29  */
30 extern void l2_emulation_enable (u32 sw_if_index);
31 extern void l2_emulation_disable (u32 sw_if_index);
32 
33 #endif
34 
35 /*
36  * fd.io coding-style-patch-verification: ON
37  *
38  * Local Variables:
39  * eval: (c-set-style "gnu")
40  * End:
41  */
unsigned int u32
Definition: types.h:88
void l2_emulation_enable(u32 sw_if_index)
L2 Emulation is a feautre that is applied to L2 ports to &#39;extract&#39; IP packets from the L2 path and in...
Definition: l2e.c:58
void l2_emulation_disable(u32 sw_if_index)
Definition: l2e.c:79