1 /* Hey Emacs use -*- mode: C -*- */
3 * Copyright (c) 2015-2020 Cisco and/or its affiliates.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at:
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 option version = "1.0.0";
18 import "vnet/ip/ip_types.api";
19 import "vnet/interface_types.api";
37 vl_api_address_t start_addr;
38 vl_api_address_t end_addr;
44 u8 hex; /* hex encoding of the shared secret */
49 typedef ikev2_responder
51 vl_api_interface_index_t sw_if_index;
52 vl_api_address_t addr;
55 typedef ikev2_ike_transforms
63 typedef ikev2_esp_transforms
73 vl_api_ikev2_id_t loc_id;
74 vl_api_ikev2_id_t rem_id;
75 vl_api_ikev2_ts_t loc_ts;
76 vl_api_ikev2_ts_t rem_ts;
77 vl_api_ikev2_responder_t responder;
78 vl_api_ikev2_ike_transforms_t ike_ts;
79 vl_api_ikev2_esp_transforms_t esp_ts;
84 u16 ipsec_over_udp_port;
88 vl_api_ikev2_auth_t auth;
91 typedef ikev2_sa_transform
119 typedef ikev2_child_sa
125 vl_api_ikev2_keys_t keys;
126 vl_api_ikev2_sa_transform_t encryption;
127 vl_api_ikev2_sa_transform_t integrity;
128 vl_api_ikev2_sa_transform_t esn;
131 typedef ikev2_sa_stats
138 u16 n_init_sa_retransmit;
160 vl_api_address_t iaddr;
161 vl_api_address_t raddr;
163 vl_api_ikev2_keys_t keys;
166 vl_api_ikev2_id_t i_id;
167 vl_api_ikev2_id_t r_id;
169 vl_api_ikev2_sa_transform_t encryption;
170 vl_api_ikev2_sa_transform_t integrity;
171 vl_api_ikev2_sa_transform_t prf;
172 vl_api_ikev2_sa_transform_t dh;
174 vl_api_ikev2_sa_stats_t stats;
180 string profile_name[64];
181 vl_api_ikev2_state_t state;
185 vl_api_address_t iaddr;
186 vl_api_address_t raddr;
188 vl_api_ikev2_keys_t keys;
191 vl_api_ikev2_id_t i_id;
192 vl_api_ikev2_id_t r_id;
194 vl_api_ikev2_sa_transform_t encryption;
195 vl_api_ikev2_sa_transform_t integrity;
196 vl_api_ikev2_sa_transform_t prf;
197 vl_api_ikev2_sa_transform_t dh;
199 vl_api_ikev2_sa_stats_t stats;