FD.io VPP
v18.07-rc0-415-g6c78436
Vector Packet Processing
Main Page
Related Pages
Modules
Namespaces
Data Structures
Source
Files
Symbols
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
*/
u32
unsigned int u32
Definition:
types.h:88
l2_emulation_enable
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 in...
Definition:
l2e.c:58
vnet.h
l2_emulation_disable
void l2_emulation_disable(u32 sw_if_index)
Definition:
l2e.c:79
vlib.h
src
plugins
l2e
l2e.h
Generated on Tue Aug 21 2018 06:02:00 for FD.io VPP by
1.8.11