diff options
author | Christian Hopps <chopps@labn.net> | 2020-02-26 05:40:40 -0500 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2020-04-01 16:10:31 +0000 |
commit | 597d4df6cf8b96e645e21447974cd82c3285aee0 (patch) | |
tree | 43bd8e1ed0515da7104f0ea2253db2b30df82b9d /src/vnet/ipsec/ipsec.api | |
parent | d643e5f30155e46aa6f345aa52d8ef5026d879a6 (diff) |
api: ipsec: add missing IS_INBOUND flag
External IKE daemons need to be able to flag an SA as inbound (just as
the included ike plugin does). This commit adds this flag to the API.
This change is backward bug-compatible as not setting the flag (old
clients) continues to mean all SAs are created as outbound and fib nodes
are created for them. The addition of this flag inhibits this forwarding
node creation as well as properly flagging the SA as inbound.
Ticket: VPP-1845
Type: fix
Signed-off-by: Christian Hopps <chopps@labn.net>
Change-Id: Ifa6fd664587380aa53e95d0e4eb2e1a4b1df7909
Diffstat (limited to 'src/vnet/ipsec/ipsec.api')
-rw-r--r-- | src/vnet/ipsec/ipsec.api | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/ipsec/ipsec.api b/src/vnet/ipsec/ipsec.api index 12bdad0f9c3..ca310e7b590 100644 --- a/src/vnet/ipsec/ipsec.api +++ b/src/vnet/ipsec/ipsec.api @@ -233,6 +233,8 @@ enum ipsec_sad_flags IPSEC_API_SAD_FLAG_IS_TUNNEL_V6 = 0x08, /* enable UDP encapsulation for NAT traversal */ IPSEC_API_SAD_FLAG_UDP_ENCAP = 0x10, + /* IPsec SA is for inbound traffic */ + IPSEC_API_SAD_FLAG_IS_INBOUND = 0x40, }; enum ipsec_proto |