FD.io VPP  v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
ipsec_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.1.0";
17 
18 import "vnet/ip/ip_types.api";
19 
20 /** \brief Add / del ipsec gre tunnel request
21  @param client_index - opaque cookie to identify the sender
22  @param context - sender context, to match reply w/ request
23  @param local_sa_id - local/output SA id
24  @param remote_sa_id - remote/input SA id
25  @param is_add - 1 if adding the tunnel, 0 if deleting
26  @param sw_if_index - software index of the ipsec gre tunnel
27  ignored on create. set in dump/details
28  @param src - tunnel source address
29  @param dst - tunnel destination address
30 */
32  u32 client_index;
40 };
41 
42 define ipsec_gre_tunnel_add_del {
46  vl_api_ipsec_gre_tunnel_t tunnel;
47 };
48 
49 /** \brief Reply for add / del ipsec gre tunnel request
50  @param context - returned sender context, to match reply w/ request
51  @param retval - return code
52  @param sw_if_index - software index of the new ipsec gre tunnel
53 */
54 define ipsec_gre_tunnel_add_del_reply {
58 };
59 
60 /** \brief Dump ipsec gre tunnel table
61  @param client_index - opaque cookie to identify the sender
62  @param context - sender context, to match reply w/ request
63  @param tunnel_index - gre tunnel identifier or -1 in case of all tunnels
64 */
65 define ipsec_gre_tunnel_dump {
69 };
70 
71 /** \brief ipsec gre tunnel operational state response
72  @param context - returned sender context, to match reply w/ request
73  @param local_sa_id - local SA id
74  @param remote_sa_id - remote SA id
75  @param src_address - tunnel source address
76  @param dst_address - tunnel destination address
77 */
78 define ipsec_gre_tunnel_details {
80  vl_api_ipsec_gre_tunnel_t tunnel;
81 };
82 
83 /*
84  * Local Variables:
85  * eval: (c-set-style "gnu")
86  * End:
87  */
88 
u32 sw_if_index
Definition: ipsec_gre.api:37
vl_api_ipsec_gre_tunnel_t tunnel
Definition: ipsec_gre.api:80
vl_api_ip4_address_t dst
Definition: ipsec_gre.api:39
unsigned char u8
Definition: types.h:56
u32 local_sa_id
Definition: ipsec_gre.api:34
unsigned int u32
Definition: types.h:88
option version
Definition: ipsec_gre.api:16
vl_api_ip4_address_t src
Definition: ipsec_gre.api:38
u8 vl_api_ip4_address_t[4]
Definition: ip_types_api.h:31
u32 context
Definition: ipsec_gre.api:33
vl_api_ipsec_gre_tunnel_t tunnel
Definition: ipsec_gre.api:46
u32 remote_sa_id
Definition: ipsec_gre.api:35
signed int i32
Definition: types.h:77
u8 is_add
Definition: ipsec_gre.api:36
typedef ipsec_gre_tunnel
Add / del ipsec gre tunnel request.
Definition: ipsec_gre.api:31