7 #ifndef ODP_IPSEC_CACHE_H_
8 #define ODP_IPSEC_CACHE_H_
15 #include <odp/helper/ipsec.h>
17 #include <odp_ipsec_misc.h>
18 #include <odp_ipsec_sa_db.h>
23 typedef struct ipsec_cache_entry_s {
24 struct ipsec_cache_entry_s *next;
45 } ipsec_cache_entry_t;
50 typedef struct ipsec_cache_s {
52 ipsec_cache_entry_t *in_list;
53 ipsec_cache_entry_t *out_list;
54 ipsec_cache_entry_t array[MAX_DB];
58 extern ipsec_cache_t *ipsec_cache;
61 void init_ipsec_cache(
void);
74 int create_ipsec_cache_entry(sa_db_entry_t *cipher_sa,
75 sa_db_entry_t *auth_sa,
90 ipsec_cache_entry_t *find_ipsec_cache_entry_in(uint32_t src_ip,
104 ipsec_cache_entry_t *find_ipsec_cache_entry_out(uint32_t src_ip,
108 int destroy_ipsec_cache(
void);
odp_cipher_alg_t
Crypto API cipher algorithm.
odp_auth_alg_t
Crypto API authentication algorithm.
bool odp_bool_t
Boolean type.