rte_ipsec_sad.h(3)
NAME π
Okay so this is the rte_ipsec_sad.h(3) page from the Library Functions Manual, bestie, and it is literally all about rte_ipsec_sad.h β the RTE IPsec security association database (SAD) support zone. Iconic. π
β¨ SYNOPSIS β¨
#include <stdint.h>
#include <rte_ip6.h>
π§Έ Data Structures
struct rte_ipsec_sad_conf
π Macros
#define RTE_IPSEC_SAD_NAMESIZE 64
#define RTE_IPSEC_SAD_FLAG_IPV6 0x1
#define RTE_IPSEC_SAD_FLAG_RW_CONCURRENCY 0x2
π¦ Enumerations
enum
πΈ Functions
int rte_ipsec_sad_add (struct rte_ipsec_sad *sad, const union
rte_ipsec_sad_key *key, int key_type, void *sa)
int rte_ipsec_sad_del (struct rte_ipsec_sad *sad, const union
rte_ipsec_sad_key *key, int key_type)
struct rte_ipsec_sad * rte_ipsec_sad_find_existing (const char *name)
void rte_ipsec_sad_destroy (struct rte_ipsec_sad *sad)
int rte_ipsec_sad_lookup (const struct rte_ipsec_sad *sad, const union
rte_ipsec_sad_key *keys[], void *sa[], uint32_t n)
π¦ Detailed Description π¦
RTE IPsec security association database (SAD) support. It contains helper functions to lookup and maintain SAD. Honestly? Main character energy for your IPsec bookkeeping. π
Definition in file rte_ipsec_sad.h.
π₯ Macro Definition Documentation π₯
π #define RTE_IPSEC_SAD_NAMESIZE 64
Max number of characters in SAD name.
Definition at line 51 of file rte_ipsec_sad.h.
π #define RTE_IPSEC_SAD_FLAG_IPV6 0x1
Flag to create SAD with ipv6 dip and sip addresses.
Definition at line 53 of file rte_ipsec_sad.h.
π #define RTE_IPSEC_SAD_FLAG_RW_CONCURRENCY 0x2
Flag to support reader writer concurrency.
Definition at line 55 of file rte_ipsec_sad.h.
πΈ Enumeration Type Documentation πΈ
π«§ anonymous enum
Type of key.
Definition at line 26 of file rte_ipsec_sad.h.
π Function Documentation π
π« rte_ipsec_sad_add
int rte_ipsec_sad_add (struct rte_ipsec_sad * sad, const union
rte_ipsec_sad_key * key, int key_type, void * sa)
Add a rule into the SAD. Could be safely called with concurrent lookups if RTE_IPSEC_SAD_FLAG_RW_CONCURRENCY flag was configured on creation time. While with this flag multi-reader - one-writer model is MT safe, multi-writer model is not and requires extra synchronisation. Read that again, bestie: multi-writer needs extra synchronisation, no cap. π
Parameters
sadβ SAD object handlekeyβ pointer to the keykey_typeβ key type (spi only/spi+dip/spi+dip+sip)saβ Pointer associated with the key to save in a SAD. Must be 4 bytes aligned.
Returns
0on success, negative value otherwise
π« rte_ipsec_sad_del
int rte_ipsec_sad_del (struct rte_ipsec_sad * sad, const union
rte_ipsec_sad_key * key, int key_type)
Delete a rule from the SAD. Could be safely called with concurrent lookups if RTE_IPSEC_SAD_FLAG_RW_CONCURRENCY flag was configured on creation time. While with this flag multi-reader - one-writer model is MT safe, multi-writer model is not and requires extra synchronisation. Same concurrency tea as add, fr fr. π΅
Parameters
sadβ SAD object handlekeyβ pointer to the keykey_typeβ key type (spi only/spi+dip/spi+dip+sip)
Returns
0on success, negative value otherwise
π« rte_ipsec_sad_find_existing
struct rte_ipsec_sad * rte_ipsec_sad_find_existing (const char * name)
Find an existing SAD object and return a pointer to it.
Parameters
nameβ Name of the SAD object as passed torte_ipsec_sad_create()
Returns
Pointer to sad object or NULL if object not found with rte_errno set appropriately. Possible rte_errno values include:
ENOENTβ required entry not available to return.
π« rte_ipsec_sad_destroy
void rte_ipsec_sad_destroy (struct rte_ipsec_sad * sad)
Destroy SAD object. It's giving cleanup era. π§Ή
Parameters
sadβ pointer to the SAD object
π« rte_ipsec_sad_lookup
int rte_ipsec_sad_lookup (const struct rte_ipsec_sad * sad, const union
rte_ipsec_sad_key * keys[], void * sa[], uint32_t n)
Lookup multiple keys in the SAD.
Parameters
sadβ SAD object handlekeysβ Array of keys to be looked up in the SADsaβ Pointer associated with the keys. If the lookup for the given key failed, then correspondingsawill beNULLnβ Number of elements in keys array to lookup.
Returns
-EINVAL for incorrect arguments, otherwise number of successful lookups.
π Author π
Generated automatically by Doxygen for DPDK from the source code.
mwah π β DPDK, Version 26.03.0, rte_ipsec_sad.h(3) signing off, bestie. The footer didn't come with a date, so no cap: I'm not inventing one. π«Άβ¨
π¦ where this page comes from
- nixos 26.05: dpdk 26.03
- nixpkgs unstable: dpdk 26.03
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms