FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
ipsec.api
Go to the documentation of this file.
1 /* Hey Emacs use -*- mode: C -*- */
2 /*
3  * Copyright (c) 2015-2016 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:
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 
17 option version = "5.0.1";
18 
19 import "vnet/ipsec/ipsec_types.api";
20 import "vnet/interface_types.api";
21 import "vnet/ip/ip_types.api";
22 import "vnet/interface_types.api";
23 import "vnet/tunnel/tunnel_types.api";
24 
25 /** \brief IPsec: Add/delete Security Policy Database
26  @param client_index - opaque cookie to identify the sender
27  @param context - sender context, to match reply w/ request
28  @param is_add - add SPD if non-zero, else delete
29  @param spd_id - SPD instance id (control plane allocated)
30 */
31 
32 autoreply define ipsec_spd_add_del
33 {
36  bool is_add;
38 };
39 
40 /** \brief IPsec: Add/delete SPD from interface
41 
42  @param client_index - opaque cookie to identify the sender
43  @param context - sender context, to match reply w/ request
44  @param is_add - add security mode if non-zero, else delete
45  @param sw_if_index - index of the interface
46  @param spd_id - SPD instance id to use for lookups
47 */
48 
49 
50 autoreply define ipsec_interface_add_del_spd
51 {
54 
55  bool is_add;
56  vl_api_interface_index_t sw_if_index;
58 };
59 
60 
62 {
63  /* bypass - no IPsec processing */
65  /* discard - discard packet with ICMP processing */
67  /* resolve - send request to control plane for SA resolving */
69  /* protect - apply IPsec policy using following parameters */
71 };
72 
73 /** \brief IPsec: Security Policy Database entry
74 
75  See RFC 4301, 4.4.1.1 on how to match packet to selectors
76 
77  @param spd_id - SPD instance id (control plane allocated)
78  @param priority - priority of SPD entry (non-unique value). Used to order SPD matching - higher priorities match before lower
79  @param is_outbound - entry applies to outbound traffic if non-zero, otherwise applies to inbound traffic
80  @param remote_address_start - start of remote address range to match
81  @param remote_address_stop - end of remote address range to match
82  @param local_address_start - start of local address range to match
83  @param local_address_stop - end of local address range to match
84  @param protocol - protocol type to match [0 means any] otherwise IANA value
85  @param remote_port_start - start of remote port range to match ...
86  @param remote_port_stop - end of remote port range to match [0 to 65535 means ANY, 65535 to 0 means OPAQUE]
87  @param local_port_start - start of local port range to match ...
88  @param local_port_stop - end of remote port range to match [0 to 65535 means ANY, 65535 to 0 means OPAQUE]
89  @param policy - action to perform on match
90  @param sa_id - SAD instance id (control plane allocated)
91 */
92 typedef ipsec_spd_entry
93 {
94  u32 spd_id;
97 
99  vl_api_ipsec_spd_action_t policy;
100  /* Which protocol?? */
102 
103  // Selector
104  vl_api_address_t remote_address_start;
105  vl_api_address_t remote_address_stop;
106  vl_api_address_t local_address_start;
107  vl_api_address_t local_address_stop;
108 
113 };
114 
115 /** \brief IPsec: Add/delete Security Policy Database entry
116 
117  @param client_index - opaque cookie to identify the sender
118  @param context - sender context, to match reply w/ request
119  @param is_add - add SPD if non-zero, else delete
120  @param entry - Description of the entry to add/dell
121 */
122 define ipsec_spd_entry_add_del
123 {
126  bool is_add;
127  vl_api_ipsec_spd_entry_t entry;
128 };
129 
130 /** \brief IPsec: Reply Add/delete Security Policy Database entry
131 
132  @param context - sender context, to match reply w/ request
133  @param retval - success/fail rutrun code
134  @param stat_index - An index for the policy in the stats segment @ /net/ipec/policy
135 */
136 define ipsec_spd_entry_add_del_reply
137 {
141 };
142 
143 /** \brief Dump IPsec all SPD IDs
144  @param client_index - opaque cookie to identify the sender
145  @param context - sender context, to match reply w/ request
146 */
147 define ipsec_spds_dump {
150 };
151 
152 /** \brief Dump IPsec all SPD IDs response
153  @param client_index - opaque cookie to identify the sender
154  @param spd_id - SPD instance id (control plane allocated)
155  @param npolicies - number of policies in SPD
156 */
157 define ipsec_spds_details {
161 };
162 
163 /** \brief Dump ipsec policy database data
164  @param client_index - opaque cookie to identify the sender
165  @param context - sender context, to match reply w/ request
166  @param spd_id - SPD instance id
167  @param sa_id - SA id, optional, set to ~0 to see all policies in SPD
168 */
169 define ipsec_spd_dump {
174 };
175 
176 /** \brief IPsec policy database response
177  @param context - sender context which was passed in the request
178  €param entry - The SPD entry.
179  @param bytes - byte count of packets matching this policy
180  @param packets - count of packets matching this policy
181 */
182 define ipsec_spd_details {
184  vl_api_ipsec_spd_entry_t entry;
185 };
186 
187 /** \brief IPsec: Add/delete Security Association Database entry
188  @param client_index - opaque cookie to identify the sender
189  @param context - sender context, to match reply w/ request
190  @param entry - Entry to add or delete
191  */
192 define ipsec_sad_entry_add_del
193 {
194  option deprecated;
197  bool is_add;
198  vl_api_ipsec_sad_entry_t entry;
199 };
200 define ipsec_sad_entry_add_del_v2
201 {
204  bool is_add;
205  vl_api_ipsec_sad_entry_v2_t entry;
206 };
207 define ipsec_sad_entry_add_del_v3
208 {
211  bool is_add;
212  vl_api_ipsec_sad_entry_v3_t entry;
213 };
214 
215 define ipsec_sad_entry_add_del_reply
216 {
217  option deprecated;
221 };
222 define ipsec_sad_entry_add_del_v2_reply
223 {
227 };
228 define ipsec_sad_entry_add_del_v3_reply
229 {
233 };
234 
235 /** \brief Add or Update Protection for a tunnel with IPSEC
236 
237  Tunnel protection directly associates an SA with all packets
238  ingress and egress on the tunnel. This could also be achieved by
239  assigning an SPD to the tunnel, but that would incur an unnessccary
240  SPD entry lookup.
241 
242  For tunnels the ESP acts on the post-encapsulated packet. So if this
243  packet:
244  +---------+------+
245  | Payload | O-IP |
246  +---------+------+
247  where O-IP is the overlay IP addrees that was routed into the tunnel,
248  the resulting encapsulated packet will be:
249  +---------+------+------+
250  | Payload | O-IP | T-IP |
251  +---------+------+------+
252  where T-IP is the tunnel's src.dst IP addresses.
253  If the SAs used for protection are in transport mode then the ESP is
254  inserted before T-IP, i.e.:
255  +---------+------+-----+------+
256  | Payload | O-IP | ESP | T-IP |
257  +---------+------+-----+------+
258  If the SAs used for protection are in tunnel mode then another
259  encapsulation occurs, i.e.:
260  +---------+------+------+-----+------+
261  | Payload | O-IP | T-IP | ESP | C-IP |
262  +---------+------+------+-----+------+
263  where C-IP are the crypto endpoint IP addresses defined as the tunnel
264  endpoints in the SA.
265  The mode for the inbound and outbound SA must be the same.
266 
267  @param client_index - opaque cookie to identify the sender
268  @param context - sender context, to match reply w/ request
269  @param sw_id_index - Tunnel interface to protect
270  @param nh - The peer/next-hop on the tunnel to which the traffic
271  should be protected. For a P2P interface set this to the
272  all 0s address.
273  @param sa_in - The ID [set] of inbound SAs
274  @param sa_out - The ID of outbound SA
275 */
276 typedef ipsec_tunnel_protect
277 {
278  vl_api_interface_index_t sw_if_index;
279  vl_api_address_t nh;
283 };
284 
285 autoreply define ipsec_tunnel_protect_update
286 {
289 
290  vl_api_ipsec_tunnel_protect_t tunnel;
291 };
292 
293 autoreply define ipsec_tunnel_protect_del
294 {
297 
298  vl_api_interface_index_t sw_if_index;
299  vl_api_address_t nh;
300 };
301 
302 /**
303  * @brief Dump all tunnel protections
304  */
305 define ipsec_tunnel_protect_dump
306 {
309  vl_api_interface_index_t sw_if_index;
310 };
311 
312 define ipsec_tunnel_protect_details
313 {
315  vl_api_ipsec_tunnel_protect_t tun;
316 };
317 
318 /** \brief IPsec: Get SPD interfaces
319  @param client_index - opaque cookie to identify the sender
320  @param context - sender context, to match reply w/ request
321  @param spd_index - SPD index
322  @param spd_index_valid - if 1 spd_index is used to filter
323  spd_index's, if 0 no filtering is done
324 */
325 define ipsec_spd_interface_dump {
330 };
331 
332 /** \brief IPsec: SPD interface response
333  @param context - sender context which was passed in the request
334  @param spd_index - SPD index
335  @param sw_if_index - index of the interface
336 */
337 define ipsec_spd_interface_details {
340  vl_api_interface_index_t sw_if_index;
341 };
342 
343 typedef ipsec_itf
344 {
345  u32 user_instance [default=0xffffffff];
346  vl_api_tunnel_mode_t mode;
347  vl_api_interface_index_t sw_if_index;
348 };
349 
350 /** \brief Create an IPSec interface
351  */
355  vl_api_ipsec_itf_t itf;
356 };
357 
358 /** \brief Add IPsec interface interface response
359  @param context - sender context, to match reply w/ request
360  @param retval - return status
361  @param sw_if_index - sw_if_index of new interface (for successful add)
362 */
363 define ipsec_itf_create_reply
364 {
367  vl_api_interface_index_t sw_if_index;
368 };
369 
370 autoreply define ipsec_itf_delete
371 {
374  vl_api_interface_index_t sw_if_index;
375 };
376 
377 define ipsec_itf_dump
378 {
381  vl_api_interface_index_t sw_if_index;
382 };
383 
384 define ipsec_itf_details
385 {
387  vl_api_ipsec_itf_t itf;
388 };
389 
390 /** \brief Dump IPsec security association
391  @param client_index - opaque cookie to identify the sender
392  @param context - sender context, to match reply w/ request
393  @param sa_id - optional ID of an SA to dump, if ~0 dump all SAs in SAD
394 */
395 define ipsec_sa_dump
396 {
397  option deprecated;
401 };
402 define ipsec_sa_v2_dump
403 {
407 };
408 define ipsec_sa_v3_dump
409 {
413 };
414 
415 /** \brief IPsec security association database response
416  @param context - sender context which was passed in the request
417  @param entry - The SA details
418  @param sw_if_index - sw_if_index of tunnel interface, policy-based SAs = ~0
419  @param salt - 4 byte salt
420  @param seq - current sequence number for outbound
421  @param seq_hi - high 32 bits of ESN for outbound
422  @param last_seq - highest sequence number received inbound
423  @param last_seq_hi - high 32 bits of highest ESN received inbound
424  @param replay_window - bit map of seq nums received relative to last_seq if using anti-replay
425  @param stat_index - index for the SA in the stats segment @ /net/ipsec/sa
426 */
427 define ipsec_sa_details {
428  option deprecated;
430  vl_api_ipsec_sad_entry_t entry;
431 
432  vl_api_interface_index_t sw_if_index;
437 
439 };
440 define ipsec_sa_v2_details {
442  vl_api_ipsec_sad_entry_v2_t entry;
443 
444  vl_api_interface_index_t sw_if_index;
449 
451 };
452 define ipsec_sa_v3_details {
454  vl_api_ipsec_sad_entry_v3_t entry;
455 
456  vl_api_interface_index_t sw_if_index;
460 
462 };
463 
464 /** \brief Dump IPsec backends
465  @param client_index - opaque cookie to identify the sender
466  @param context - sender context, to match reply w/ request
467 */
468 define ipsec_backend_dump {
471 };
472 
473 /** \brief IPsec backend details
474  @param name - name of the backend
475  @param protocol - IPsec protocol (value from ipsec_protocol_t)
476  @param index - backend index
477  @param active - set to 1 if the backend is active, otherwise 0
478 */
479 define ipsec_backend_details {
481  string name[128];
482  vl_api_ipsec_proto_t protocol;
484  bool active;
485 };
486 
487 /** \brief Select IPsec backend
488  @param client_index - opaque cookie to identify the sender
489  @param context - sender context, to match reply w/ request
490  @param protocol - IPsec protocol (value from ipsec_protocol_t)
491  @param index - backend index
492 */
493 autoreply define ipsec_select_backend {
496  vl_api_ipsec_proto_t protocol;
498 };
499 
500 
501 /** \brief IPsec Set Async mode
502  @param client_index - opaque cookie to identify the sender
503  @param context - sender context, to match reply w/ request
504  @param async_enable - ipsec async mode on or off
505 */
506 autoreply define ipsec_set_async_mode {
510 };
511 
512 /*
513  * Local Variables:
514  * eval: (c-set-style "gnu")
515  * End:
516  */
vl_api_ipsec_sa_dump_t
Dump IPsec security association.
Definition: ipsec.api:395
vl_api_ipsec_sa_v3_details_t::last_seq_inbound
u64 last_seq_inbound
Definition: ipsec.api:458
vl_api_ipsec_sad_entry_add_del_reply_t::retval
i32 retval
Definition: ipsec.api:219
vl_api_ipsec_spd_interface_details_t::context
u32 context
Definition: ipsec.api:338
vl_api_ipsec_backend_dump_t::context
u32 context
Definition: ipsec.api:470
vl_api_ipsec_spd_dump_t::spd_id
u32 spd_id
Definition: ipsec.api:172
vl_api_ipsec_sa_v2_details_t::entry
vl_api_ipsec_sad_entry_v2_t entry
Definition: ipsec.api:442
vl_api_ipsec_tunnel_protect_del_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: ipsec.api:298
vl_api_ipsec_sa_v3_details_t::entry
vl_api_ipsec_sad_entry_v3_t entry
Definition: ipsec.api:454
vl_api_ipsec_backend_dump_t
Dump IPsec backends.
Definition: ipsec.api:468
n_sa_in
u8 n_sa_in
Definition: ipsec.api:281
vl_api_ipsec_sad_entry_add_del_v2_reply_t::retval
i32 retval
Definition: ipsec.api:225
vl_api_ipsec_tunnel_protect_update_t::client_index
u32 client_index
Definition: ipsec.api:287
vl_api_ipsec_sa_v3_details_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: ipsec.api:456
vl_api_ipsec_sad_entry_add_del_reply_t::context
u32 context
Definition: ipsec.api:218
vl_api_ipsec_interface_add_del_spd_t::spd_id
u32 spd_id
Definition: ipsec.api:57
vl_api_ipsec_sa_v2_details_t::seq_outbound
u64 seq_outbound
Definition: ipsec.api:446
vl_api_ipsec_tunnel_protect_del_t::nh
vl_api_address_t nh
Definition: ipsec.api:299
vl_api_ipsec_itf_details_t::itf
vl_api_ipsec_itf_t itf
Definition: ipsec.api:387
vl_api_ipsec_sad_entry_add_del_v3_t
Definition: ipsec.api:207
vl_api_ipsec_sad_entry_add_del_v3_t::context
u32 context
Definition: ipsec.api:210
vl_api_ipsec_sad_entry_add_del_t
IPsec: Add/delete Security Association Database entry.
Definition: ipsec.api:192
vl_api_ipsec_sad_entry_add_del_v3_reply_t
Definition: ipsec.api:228
vl_api_ipsec_spd_entry_add_del_reply_t::retval
i32 retval
Definition: ipsec.api:139
local_port_stop
u16 local_port_stop
Definition: ipsec.api:112
vl_api_ipsec_spd_details_t
IPsec policy database response.
Definition: ipsec.api:182
vl_api_ipsec_sa_v2_dump_t
Definition: ipsec.api:402
policy
vl_api_ipsec_spd_action_t policy
Definition: ipsec.api:99
vl_api_ipsec_spd_add_del_t::is_add
bool is_add
Definition: ipsec.api:36
vl_api_ipsec_sa_details_t::stat_index
u32 stat_index
Definition: ipsec.api:438
IPSEC_API_SPD_ACTION_PROTECT
@ IPSEC_API_SPD_ACTION_PROTECT
Definition: ipsec.api:70
vl_api_ipsec_spd_entry_add_del_t::is_add
bool is_add
Definition: ipsec.api:126
name
string name[64]
Definition: fib.api:25
vl_api_ipsec_sa_dump_t::client_index
u32 client_index
Definition: ipsec.api:398
vl_api_ipsec_itf_create_reply_t
Add IPsec interface interface response.
Definition: ipsec.api:363
vl_api_ipsec_spd_entry_add_del_reply_t
IPsec: Reply Add/delete Security Policy Database entry.
Definition: ipsec.api:136
vl_api_ipsec_sa_details_t::last_seq_inbound
u64 last_seq_inbound
Definition: ipsec.api:435
remote_address_start
vl_api_address_t remote_address_start
Definition: ipsec.api:104
vl_api_ipsec_sa_v2_details_t::last_seq_inbound
u64 last_seq_inbound
Definition: ipsec.api:447
vl_api_ipsec_sa_v3_details_t::replay_window
u64 replay_window
Definition: ipsec.api:459
vl_api_ipsec_itf_dump_t
Definition: ipsec.api:377
vl_api_ipsec_tunnel_protect_dump_t::context
u32 context
Definition: ipsec.api:308
local_address_start
vl_api_address_t local_address_start
Definition: ipsec.api:106
u16
unsigned short u16
Definition: types.h:57
vl_api_ipsec_sa_details_t::salt
u32 salt
Definition: ipsec.api:433
vl_api_ipsec_sad_entry_add_del_t::client_index
u32 client_index
Definition: ipsec.api:195
vl_api_ipsec_itf_create_reply_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: ipsec.api:367
vl_api_ipsec_spd_add_del_t::client_index
u32 client_index
Definition: ipsec.api:34
vl_api_ipsec_sa_details_t::context
u32 context
Definition: ipsec.api:429
vl_api_ipsec_sa_v3_details_t
Definition: ipsec.api:452
ipsec_tunnel_protect
typedef ipsec_tunnel_protect
Add or Update Protection for a tunnel with IPSEC.
Definition: ipsec.api:277
vl_api_ipsec_spd_details_t::context
u32 context
Definition: ipsec.api:183
vl_api_ipsec_tunnel_protect_details_t::tun
vl_api_ipsec_tunnel_protect_t tun
Definition: ipsec.api:315
vl_api_ipsec_sad_entry_add_del_v2_reply_t
Definition: ipsec.api:222
vl_api_ipsec_spd_details_t::entry
vl_api_ipsec_spd_entry_t entry
Definition: ipsec.api:184
vl_api_ipsec_spd_interface_dump_t::spd_index
u32 spd_index
Definition: ipsec.api:328
vl_api_ipsec_sa_v3_details_t::seq_outbound
u64 seq_outbound
Definition: ipsec.api:457
vl_api_ipsec_sa_v3_details_t::stat_index
u32 stat_index
Definition: ipsec.api:461
sa_out
u32 sa_out
Definition: ipsec.api:280
vl_api_ipsec_sad_entry_add_del_t::context
u32 context
Definition: ipsec.api:196
vl_api_ipsec_sad_entry_add_del_t::is_add
bool is_add
Definition: ipsec.api:197
vl_api_ipsec_tunnel_protect_del_t::client_index
u32 client_index
Definition: ipsec.api:295
vl_api_ipsec_set_async_mode_t
IPsec Set Async mode.
Definition: ipsec.api:506
vl_api_ipsec_spds_details_t::npolicies
u32 npolicies
Definition: ipsec.api:160
local_address_stop
vl_api_address_t local_address_stop
Definition: ipsec.api:107
vl_api_ipsec_spd_add_del_t
IPsec: Add/delete Security Policy Database.
Definition: ipsec.api:32
vl_api_ipsec_tunnel_protect_dump_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: ipsec.api:309
vl_api_ipsec_sad_entry_add_del_t::deprecated
option deprecated
Definition: ipsec.api:194
vl_api_ipsec_spd_entry_add_del_t
IPsec: Add/delete Security Policy Database entry.
Definition: ipsec.api:122
i32
signed int i32
Definition: types.h:77
protocol
u8 protocol
Definition: ipsec.api:101
vl_api_ipsec_tunnel_protect_details_t
Definition: ipsec.api:312
vl_api_ipsec_itf_delete_t::context
u32 context
Definition: ipsec.api:373
ipsec_spd_action
ipsec_spd_action
Definition: ipsec.api:61
vl_api_ipsec_sad_entry_add_del_v2_t::client_index
u32 client_index
Definition: ipsec.api:202
vl_api_ipsec_sad_entry_add_del_v3_reply_t::stat_index
u32 stat_index
Definition: ipsec.api:232
is_outbound
bool is_outbound
Definition: ipsec.api:96
IPSEC_API_SPD_ACTION_RESOLVE
@ IPSEC_API_SPD_ACTION_RESOLVE
Definition: ipsec.api:68
vl_api_ipsec_spd_add_del_t::context
u32 context
Definition: ipsec.api:35
ipsec_itf_create
int ipsec_itf_create(u32 user_instance, tunnel_mode_t mode, u32 *sw_if_indexp)
Definition: ipsec_itf.c:272
vl_api_ipsec_sa_v2_details_t::stat_index
u32 stat_index
Definition: ipsec.api:450
ipsec_itf
typedef ipsec_itf
Definition: ipsec.api:344
sw_if_index
vl_api_interface_index_t sw_if_index
Definition: ipsec.api:347
vl_api_ipsec_interface_add_del_spd_t
IPsec: Add/delete SPD from interface.
Definition: ipsec.api:50
vl_api_ipsec_spds_dump_t
Dump IPsec all SPD IDs.
Definition: ipsec.api:147
vl_api_ipsec_sa_dump_t::deprecated
option deprecated
Definition: ipsec.api:397
vl_api_ipsec_sad_entry_add_del_v3_t::client_index
u32 client_index
Definition: ipsec.api:209
vl_api_ipsec_interface_add_del_spd_t::context
u32 context
Definition: ipsec.api:53
priority
i32 priority
Definition: ipsec.api:95
vl_api_ipsec_backend_details_t::name
string name[128]
Definition: ipsec.api:481
vl_api_ipsec_spd_add_del_t::spd_id
u32 spd_id
Definition: ipsec.api:37
vl_api_ipsec_sad_entry_add_del_v3_t::entry
vl_api_ipsec_sad_entry_v3_t entry
Definition: ipsec.api:212
vl_api_ipsec_sad_entry_add_del_v2_reply_t::context
u32 context
Definition: ipsec.api:224
vl_api_ipsec_spd_interface_details_t
IPsec: SPD interface response.
Definition: ipsec.api:337
vl_api_ipsec_spd_dump_t::sa_id
u32 sa_id
Definition: ipsec.api:173
vl_api_ipsec_sa_v2_details_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: ipsec.api:444
vl_api_ipsec_itf_create_t
Create an IPSec interface.
Definition: ipsec.api:352
vl_api_ipsec_spds_details_t
Dump IPsec all SPD IDs response.
Definition: ipsec.api:157
vl_api_ipsec_itf_dump_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: ipsec.api:381
vl_api_ipsec_sa_v3_details_t::context
u32 context
Definition: ipsec.api:453
vl_api_ipsec_itf_details_t::context
u32 context
Definition: ipsec.api:386
vl_api_ipsec_spd_entry_add_del_reply_t::stat_index
u32 stat_index
Definition: ipsec.api:140
vl_api_ipsec_sa_v2_dump_t::client_index
u32 client_index
Definition: ipsec.api:404
vl_api_ipsec_select_backend_t::client_index
u32 client_index
Definition: ipsec.api:494
sa_in
u32 sa_in[n_sa_in]
Definition: ipsec.api:282
vl_api_ipsec_backend_dump_t::client_index
u32 client_index
Definition: ipsec.api:469
vl_api_ipsec_sa_v2_dump_t::sa_id
u32 sa_id
Definition: ipsec.api:406
vl_api_ipsec_sa_dump_t::context
u32 context
Definition: ipsec.api:399
vl_api_ipsec_itf_delete_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: ipsec.api:374
ipsec_spd_entry
typedef ipsec_spd_entry
IPsec: Security Policy Database entry.
Definition: ipsec.api:93
remote_port_stop
u16 remote_port_stop
Definition: ipsec.api:110
vl_api_ipsec_sa_details_t::seq_outbound
u64 seq_outbound
Definition: ipsec.api:434
remote_address_stop
vl_api_address_t remote_address_stop
Definition: ipsec.api:105
vl_api_ipsec_select_backend_t::context
u32 context
Definition: ipsec.api:495
vl_api_ipsec_spd_interface_details_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: ipsec.api:340
vl_api_ipsec_sad_entry_add_del_reply_t::deprecated
option deprecated
Definition: ipsec.api:217
sa_id
u32 sa_id
Definition: ipsec.api:98
vl_api_ipsec_spd_dump_t::context
u32 context
Definition: ipsec.api:171
vl_api_ipsec_backend_details_t::context
u32 context
Definition: ipsec.api:480
version
option version
Definition: ipsec.api:17
vl_api_ipsec_tunnel_protect_del_t
Definition: ipsec.api:293
vl_api_ipsec_backend_details_t::active
bool active
Definition: ipsec.api:484
vl_api_ipsec_spd_entry_add_del_t::client_index
u32 client_index
Definition: ipsec.api:124
vl_api_ipsec_sad_entry_add_del_v3_t::is_add
bool is_add
Definition: ipsec.api:211
vl_api_ipsec_itf_create_reply_t::context
u32 context
Definition: ipsec.api:365
vl_api_ipsec_select_backend_t
Select IPsec backend.
Definition: ipsec.api:493
vl_api_ipsec_sa_v3_dump_t
Definition: ipsec.api:408
vl_api_ipsec_tunnel_protect_details_t::context
u32 context
Definition: ipsec.api:314
vl_api_ipsec_backend_details_t::protocol
vl_api_ipsec_proto_t protocol
Definition: ipsec.api:482
vl_api_ipsec_tunnel_protect_update_t
Definition: ipsec.api:285
vl_api_ipsec_spds_details_t::context
u32 context
Definition: ipsec.api:158
vl_api_ipsec_spd_dump_t::client_index
u32 client_index
Definition: ipsec.api:170
vl_api_ipsec_sad_entry_add_del_v2_t::is_add
bool is_add
Definition: ipsec.api:204
vl_api_ipsec_spds_dump_t::client_index
u32 client_index
Definition: ipsec.api:148
vl_api_ipsec_spd_entry_add_del_reply_t::context
u32 context
Definition: ipsec.api:138
vl_api_ipsec_sa_details_t::entry
vl_api_ipsec_sad_entry_t entry
Definition: ipsec.api:430
vl_api_ipsec_itf_create_reply_t::retval
i32 retval
Definition: ipsec.api:366
vl_api_ipsec_sad_entry_add_del_v2_t::entry
vl_api_ipsec_sad_entry_v2_t entry
Definition: ipsec.api:205
vl_api_ipsec_tunnel_protect_update_t::tunnel
vl_api_ipsec_tunnel_protect_t tunnel
Definition: ipsec.api:290
vl_api_ipsec_sa_v3_dump_t::context
u32 context
Definition: ipsec.api:411
vl_api_ipsec_spd_interface_dump_t::context
u32 context
Definition: ipsec.api:327
u64
unsigned long u64
Definition: types.h:89
vl_api_ipsec_backend_details_t
IPsec backend details.
Definition: ipsec.api:479
IPSEC_API_SPD_ACTION_BYPASS
@ IPSEC_API_SPD_ACTION_BYPASS
Definition: ipsec.api:64
vl_api_ipsec_sad_entry_add_del_v2_t::context
u32 context
Definition: ipsec.api:203
vl_api_ipsec_sad_entry_add_del_v2_reply_t::stat_index
u32 stat_index
Definition: ipsec.api:226
vl_api_ipsec_spd_dump_t
Dump ipsec policy database data.
Definition: ipsec.api:169
u32
unsigned int u32
Definition: types.h:88
vl_api_ipsec_sa_details_t::deprecated
option deprecated
Definition: ipsec.api:428
vl_api_ipsec_backend_details_t::index
u8 index
Definition: ipsec.api:483
vl_api_ipsec_spd_entry_add_del_t::entry
vl_api_ipsec_spd_entry_t entry
Definition: ipsec.api:127
vl_api_ipsec_sa_v2_dump_t::context
u32 context
Definition: ipsec.api:405
vl_api_ipsec_interface_add_del_spd_t::client_index
u32 client_index
Definition: ipsec.api:52
vl_api_ipsec_set_async_mode_t::client_index
u32 client_index
Definition: ipsec.api:507
vl_api_ipsec_sa_details_t::replay_window
u64 replay_window
Definition: ipsec.api:436
ipsec_set_async_mode
void ipsec_set_async_mode(u32 is_enabled)
Definition: ipsec.c:327
vl_api_ipsec_sad_entry_add_del_reply_t
Definition: ipsec.api:215
vl_api_ipsec_sa_dump_t::sa_id
u32 sa_id
Definition: ipsec.api:400
remote_port_start
u16 remote_port_start
Definition: ipsec.api:109
vl_api_ipsec_select_backend_t::index
u8 index
Definition: ipsec.api:497
vl_api_ipsec_select_backend_t::protocol
vl_api_ipsec_proto_t protocol
Definition: ipsec.api:496
vl_api_ipsec_itf_create_t::itf
vl_api_ipsec_itf_t itf
Definition: ipsec.api:355
vl_api_ipsec_spd_interface_dump_t::spd_index_valid
u8 spd_index_valid
Definition: ipsec.api:329
vl_api_ipsec_set_async_mode_t::context
u32 context
Definition: ipsec.api:508
vl_api_ipsec_spd_entry_add_del_t::context
u32 context
Definition: ipsec.api:125
vl_api_ipsec_itf_dump_t::client_index
u32 client_index
Definition: ipsec.api:379
vl_api_ipsec_itf_delete_t
Definition: ipsec.api:370
u8
unsigned char u8
Definition: types.h:56
IPSEC_API_SPD_ACTION_DISCARD
@ IPSEC_API_SPD_ACTION_DISCARD
Definition: ipsec.api:66
nh
vl_api_address_t nh
Definition: ipsec.api:279
vl_api_ipsec_itf_dump_t::context
u32 context
Definition: ipsec.api:380
vl_api_ipsec_itf_details_t
Definition: ipsec.api:384
vl_api_ipsec_sa_details_t
IPsec security association database response.
Definition: ipsec.api:427
vl_api_ipsec_tunnel_protect_dump_t
Dump all tunnel protections.
Definition: ipsec.api:305
vl_api_ipsec_interface_add_del_spd_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: ipsec.api:56
vl_api_ipsec_spd_interface_details_t::spd_index
u32 spd_index
Definition: ipsec.api:339
ipsec_itf_delete
int ipsec_itf_delete(u32 sw_if_index)
Definition: ipsec_itf.c:320
vl_api_ipsec_itf_create_t::client_index
u32 client_index
Definition: ipsec.api:353
mode
vl_api_tunnel_mode_t mode
Definition: ipsec.api:346
vl_api_ipsec_spd_interface_dump_t::client_index
u32 client_index
Definition: ipsec.api:326
vl_api_ipsec_sad_entry_add_del_v3_reply_t::context
u32 context
Definition: ipsec.api:230
vl_api_ipsec_tunnel_protect_dump_t::client_index
u32 client_index
Definition: ipsec.api:307
vl_api_ipsec_sa_v3_dump_t::client_index
u32 client_index
Definition: ipsec.api:410
vl_api_ipsec_sa_v2_details_t::context
u32 context
Definition: ipsec.api:441
vl_api_ipsec_tunnel_protect_del_t::context
u32 context
Definition: ipsec.api:296
local_port_start
u16 local_port_start
Definition: ipsec.api:111
vl_api_ipsec_tunnel_protect_update_t::context
u32 context
Definition: ipsec.api:288
vl_api_ipsec_sad_entry_add_del_v2_t
Definition: ipsec.api:200
vl_api_ipsec_sad_entry_add_del_v3_reply_t::retval
i32 retval
Definition: ipsec.api:231
vl_api_ipsec_spds_details_t::spd_id
u32 spd_id
Definition: ipsec.api:159
vl_api_ipsec_spds_dump_t::context
u32 context
Definition: ipsec.api:149
vl_api_ipsec_sad_entry_add_del_t::entry
vl_api_ipsec_sad_entry_t entry
Definition: ipsec.api:198
vl_api_ipsec_sad_entry_add_del_reply_t::stat_index
u32 stat_index
Definition: ipsec.api:220
vl_api_ipsec_sa_v3_dump_t::sa_id
u32 sa_id
Definition: ipsec.api:412
vl_api_ipsec_itf_delete_t::client_index
u32 client_index
Definition: ipsec.api:372
vl_api_ipsec_interface_add_del_spd_t::is_add
bool is_add
Definition: ipsec.api:55
vl_api_ipsec_sa_details_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: ipsec.api:432
vl_api_ipsec_sa_v2_details_t::salt
u32 salt
Definition: ipsec.api:445
vl_api_ipsec_set_async_mode_t::async_enable
bool async_enable
Definition: ipsec.api:509
vl_api_ipsec_itf_create_t::context
u32 context
Definition: ipsec.api:354
vl_api_ipsec_sa_v2_details_t::replay_window
u64 replay_window
Definition: ipsec.api:448
vl_api_ipsec_spd_interface_dump_t
IPsec: Get SPD interfaces.
Definition: ipsec.api:325
vl_api_ipsec_sa_v2_details_t
Definition: ipsec.api:440