X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fipsec%2Fipsec.h;h=975ebc63a482376fcc52d221d32a6c86d0fcc2e9;hb=dbf68c9aa258238260df34c0e864223ea4f3a987;hp=c77d0fe7dd8be6c336e590809f5b711f1a6a1134;hpb=c87b66c86201458c0475d50c6e93f1497f9eec2e;p=vpp.git diff --git a/src/vnet/ipsec/ipsec.h b/src/vnet/ipsec/ipsec.h index c77d0fe7dd8..975ebc63a48 100644 --- a/src/vnet/ipsec/ipsec.h +++ b/src/vnet/ipsec/ipsec.h @@ -25,7 +25,6 @@ #include #include #include -#include typedef clib_error_t *(*add_del_sa_sess_cb_t) (u32 sa_index, u8 is_add); typedef clib_error_t *(*check_support_cb_t) (ipsec_sa_t * sa); @@ -98,9 +97,6 @@ typedef struct /* pool of policies */ ipsec_policy_t *policies; - /* pool of tunnel interfaces */ - ipsec_tunnel_if_t *tunnel_interfaces; - uword *tunnel_index_by_key; /* convenience */ @@ -142,6 +138,10 @@ typedef struct u32 esp4_encrypt_tun_feature_index; u32 esp6_encrypt_tun_feature_index; + /* tun nodes to drop packets when no crypto alg set on outbound SA */ + u32 esp4_no_crypto_tun_feature_index; + u32 esp6_no_crypto_tun_feature_index; + /* pool of ah backends */ ipsec_ah_backend_t *ah_backends; /* pool of esp backends */ @@ -169,6 +169,7 @@ typedef enum ipsec_format_flags_t_ { IPSEC_FORMAT_BRIEF = 0, IPSEC_FORMAT_DETAIL = (1 << 0), + IPSEC_FORMAT_INSECURE = (1 << 1), } ipsec_format_flags_t; extern ipsec_main_t ipsec_main; @@ -241,6 +242,10 @@ ipsec_sa_get (u32 sa_index) return (pool_elt_at_index (ipsec_main.sad, sa_index)); } +void ipsec_add_feature (const char *arc_name, const char *node_name, + u32 * out_feature_index); + + #endif /* __IPSEC_H__ */ /*