aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/ipsec/ipsec_types.api
diff options
context:
space:
mode:
authorNeale Ranns <neale@graphiant.com>2021-06-24 15:41:03 +0000
committerMatthew Smith <mgsmith@netgate.com>2021-06-30 14:05:55 +0000
commit53dd08c59eac0c2fe2f7c38ec242c57bfc3ea0ad (patch)
treea6a356d819aba12e37f51eab435c80e80060840c /src/vnet/ipsec/ipsec_types.api
parent595724a49072b30356e365ce78a3cc815980d342 (diff)
ipsec: Derive the TUNNEL_V6 flag from the configured address types
Type: improvement There's no need for the user to set the TUNNEL_V6 flag, it can be derived from the tunnel's address type. Signed-off-by: Neale Ranns <neale@graphiant.com> Change-Id: I073073dc970b8a3f2b2645bc697fc00db1adbb47
Diffstat (limited to 'src/vnet/ipsec/ipsec_types.api')
-rw-r--r--src/vnet/ipsec/ipsec_types.api5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vnet/ipsec/ipsec_types.api b/src/vnet/ipsec/ipsec_types.api
index 9fa7e058cbf..ed04f470fd2 100644
--- a/src/vnet/ipsec/ipsec_types.api
+++ b/src/vnet/ipsec/ipsec_types.api
@@ -68,7 +68,10 @@ enum ipsec_sad_flags
/* IPsec tunnel mode if non-zero, else transport mode */
IPSEC_API_SAD_FLAG_IS_TUNNEL = 0x04,
/* IPsec tunnel mode is IPv6 if non-zero,
- * else IPv4 tunnel only valid if is_tunnel is non-zero */
+ * else IPv4 tunnel only valid if is_tunnel is non-zero
+ * DEPRECATED - the user does not need to set this it is
+ * derived from the tunnel's address types.
+ */
IPSEC_API_SAD_FLAG_IS_TUNNEL_V6 = 0x08,
/* enable UDP encapsulation for NAT traversal */
IPSEC_API_SAD_FLAG_UDP_ENCAP = 0x10,