ipsec: use id in ipsec_tunnel_protect_details 66/26266/2
authorMatthew Smith <mgsmith@netgate.com>
Tue, 31 Mar 2020 14:52:17 +0000 (09:52 -0500)
committerNeale Ranns <nranns@cisco.com>
Tue, 31 Mar 2020 17:02:39 +0000 (17:02 +0000)
commit5cee0bca5d0f01d3f26e90dee79780382e843d04
tree947615d63fcfeb6cac63df61a90da46af07245a6
parent967e9afa65ac427425f91ac70231b074559941ce
ipsec: use id in ipsec_tunnel_protect_details

Type: fix

The data populated into an ipsec_tunnel_protect_details message includes
an outbound SA and a list of inbound SAs for a tunnel interface. These
are populated with SA indices. The values used by an API client
to refer to an SA in other messages is the SA id rather than the index.
Use the SA id instead of the index.

Change-Id: Ifaad32801092a7f87bd0dcf19de418d36613f8dd
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
src/vnet/ipsec/ipsec_api.c