FD.io VPP
v19.01.3-6-g70449b9b9
Vector Packet Processing
gre.api
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2015-2016 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
option
version
=
"1.0.1"
;
17
18
/** \brief Create or delete a GRE tunnel
19
@param client_index - opaque cookie to identify the sender
20
@param context - sender context, to match reply w/ request
21
@param is_add - Use 1 to create the tunnel, 0 to remove it
22
@param is_ipv6 - Use 0 for IPv4, 1 for IPv6
23
@param tunnel_type - 0: L3, 1: TEB, 2: ERSPAN
24
@param instance - optional unique custom device instance, else ~0.
25
@param src_address - Source IP address
26
@param dst_address - Destination IP address, can be multicast
27
@param outer_fib_id - Encap FIB table ID
28
@param session_id - session for ERSPAN tunnel, range 0-1023
29
*/
30
define gre_add_del_tunnel
31
{
32
u32
client_index
;
33
u32
context
;
34
u8
is_add
;
35
u8
is_ipv6
;
36
u8
tunnel_type
;
37
u32
instance
;
/* If non-~0, specifies a custom dev instance */
38
u8
src_address
[16];
39
u8
dst_address[16];
40
u32
outer_fib_id
;
41
u16
session_id
;
42
};
43
44
define gre_add_del_tunnel_reply
45
{
46
u32
context
;
47
i32
retval
;
48
u32
sw_if_index
;
49
};
50
51
define gre_tunnel_dump
52
{
53
u32
client_index
;
54
u32
context
;
55
u32
sw_if_index
;
56
};
57
58
define gre_tunnel_details
59
{
60
u32
context
;
61
u32
sw_if_index
;
62
u32
instance
;
63
u8
is_ipv6
;
64
u8
tunnel_type
;
65
u8
src_address
[16];
66
u8
dst_address[16];
67
u32
outer_fib_id
;
68
u16
session_id
;
69
};
70
71
/*
72
* Local Variables:
73
* eval: (c-set-style "gnu")
74
* End:
75
*/
version
option version
Definition:
gre.api:16
vl_api_gre_tunnel_dump_t::client_index
u32 client_index
Definition:
gre.api:53
vl_api_gre_tunnel_details_t::session_id
u16 session_id
Definition:
gre.api:68
vl_api_gre_tunnel_details_t::is_ipv6
u8 is_ipv6
Definition:
gre.api:63
vl_api_gre_add_del_tunnel_reply_t::retval
i32 retval
Definition:
gre.api:47
vl_api_gre_add_del_tunnel_t::tunnel_type
u8 tunnel_type
Definition:
gre.api:36
vl_api_gre_add_del_tunnel_reply_t::sw_if_index
u32 sw_if_index
Definition:
gre.api:48
vl_api_gre_tunnel_details_t::context
u32 context
Definition:
gre.api:60
u8
unsigned char u8
Definition:
types.h:56
vl_api_gre_add_del_tunnel_t::is_ipv6
u8 is_ipv6
Definition:
gre.api:35
vl_api_gre_add_del_tunnel_t::context
u32 context
Definition:
gre.api:33
vl_api_gre_add_del_tunnel_reply_t::context
u32 context
Definition:
gre.api:46
u32
unsigned int u32
Definition:
types.h:88
vl_api_gre_add_del_tunnel_t::is_add
u8 is_add
Definition:
gre.api:34
u16
unsigned short u16
Definition:
types.h:57
src_address
vl_api_address_union_t src_address
Definition:
ip_types.api:44
vl_api_gre_tunnel_details_t::outer_fib_id
u32 outer_fib_id
Definition:
gre.api:67
vl_api_gre_tunnel_dump_t::context
u32 context
Definition:
gre.api:54
vl_api_gre_add_del_tunnel_t::client_index
u32 client_index
Definition:
gre.api:32
i32
signed int i32
Definition:
types.h:77
vl_api_gre_tunnel_details_t::tunnel_type
u8 tunnel_type
Definition:
gre.api:64
vl_api_gre_tunnel_details_t::instance
u32 instance
Definition:
gre.api:62
vl_api_gre_add_del_tunnel_t::session_id
u16 session_id
Definition:
gre.api:41
vl_api_gre_tunnel_dump_t::sw_if_index
u32 sw_if_index
Definition:
gre.api:55
vl_api_gre_tunnel_details_t::sw_if_index
u32 sw_if_index
Definition:
gre.api:61
vl_api_gre_add_del_tunnel_t::instance
u32 instance
Definition:
gre.api:37
vl_api_gre_add_del_tunnel_t::outer_fib_id
u32 outer_fib_id
Definition:
gre.api:40
src
vnet
gre
gre.api
Generated on Sun Dec 8 2019 18:03:00 for FD.io VPP by
1.8.13