diff options
author | Neale Ranns <nranns@cisco.com> | 2019-03-19 10:06:00 +0000 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2019-03-19 11:26:14 +0000 |
commit | 9f231d4f147c7e3fdf562680488ec5dfe7655b5e (patch) | |
tree | e190aff4497734c6ab13c512422c652e630f64bc /src/vnet/ipsec/ipsec_spd_policy.h | |
parent | ee94ffa35d69a56df894a31147a106f2a7d4c3de (diff) |
IPSEC: tidy the policy types
Change-Id: I5e981f12ff44243623cfd18d5e0ae06a7dfd1eb8
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/ipsec/ipsec_spd_policy.h')
-rw-r--r-- | src/vnet/ipsec/ipsec_spd_policy.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/vnet/ipsec/ipsec_spd_policy.h b/src/vnet/ipsec/ipsec_spd_policy.h index 40fad342978..6d6b69592b0 100644 --- a/src/vnet/ipsec/ipsec_spd_policy.h +++ b/src/vnet/ipsec/ipsec_spd_policy.h @@ -15,7 +15,7 @@ #ifndef __IPSEC_SPD_POLICY_H__ #define __IPSEC_SPD_POLICY_H__ -#include <vlib/vlib.h> +#include <vnet/ipsec/ipsec_spd.h> #define foreach_ipsec_policy_action \ _ (0, BYPASS, "bypass") \ @@ -55,7 +55,9 @@ typedef struct ipsec_policy_t_ { u32 id; i32 priority; - u8 is_outbound; + + // the type of policy + ipsec_spd_policy_type_t type; // Selector u8 is_ipv6; @@ -84,6 +86,11 @@ extern uword unformat_ipsec_policy_action (unformat_input_t * input, va_list * args); +extern int ipsec_policy_mk_type (bool is_outbound, + bool is_ipv6, + ipsec_policy_action_t action, + ipsec_spd_policy_type_t * type); + #endif /* __IPSEC_SPD_POLICY_H__ */ /* |