aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/ipsec/ipsec.api
diff options
context:
space:
mode:
authorFilip Varga <filip.varga@pantheon.tech>2018-11-02 13:51:44 +0100
committerMarco Varlese <marco.varlese@suse.de>2018-11-05 09:31:24 +0000
commit871bca9aa7a850c66228ce7124d459a6e6f21e72 (patch)
tree76d05ea3b87f7554088d1778c6e730d2bda3a68f /src/vnet/ipsec/ipsec.api
parent36ee9f1ca37daf277c2cd8d33bf16eabc15773e5 (diff)
VPP-1450: binary api call for dumping SPD to interface registration
Change-Id: Idd4a5f8bab5d39e5f33f5c130601175af70a20d4 Signed-off-by: Filip Varga <filip.varga@pantheon.tech>
Diffstat (limited to 'src/vnet/ipsec/ipsec.api')
-rw-r--r--src/vnet/ipsec/ipsec.api27
1 files changed, 26 insertions, 1 deletions
diff --git a/src/vnet/ipsec/ipsec.api b/src/vnet/ipsec/ipsec.api
index d6a28017fff..793422d86fb 100644
--- a/src/vnet/ipsec/ipsec.api
+++ b/src/vnet/ipsec/ipsec.api
@@ -455,7 +455,7 @@ define ipsec_spds_dump {
@param spd_id - SPD instance id (control plane allocated)
@param npolicies - number of policies in SPD
*/
- define ipsec_spds_details {
+define ipsec_spds_details {
u32 context;
u32 spd_id;
u32 npolicies;
@@ -515,6 +515,31 @@ define ipsec_spd_details {
u64 packets;
};
+/** \brief IPsec: Get SPD interfaces
+ @param client_index - opaque cookie to identify the sender
+ @param context - sender context, to match reply w/ request
+ @param spd_index - SPD index
+ @param spd_index_valid - if 1 spd_index is used to filter
+ spd_index's, if 0 no filtering is done
+*/
+define ipsec_spd_interface_dump {
+ u32 client_index;
+ u32 context;
+ u32 spd_index;
+ u8 spd_index_valid;
+};
+
+/** \brief IPsec: SPD interface response
+ @param context - sender context which was passed in the request
+ @param spd_index - SPD index
+ @param sw_if_index - index of the interface
+*/
+define ipsec_spd_interface_details {
+ u32 context;
+ u32 spd_index;
+ u32 sw_if_index;
+};
+
/** \brief Add or delete IPsec tunnel interface
@param client_index - opaque cookie to identify the sender
@param context - sender context, to match reply w/ request