Go to the source code of this file.
|
static clib_error_t * | ipsec_call_add_del_callbacks (ipsec_main_t *im, ipsec_sa_t *sa, u32 sa_index, int is_add) |
|
void | ipsec_mk_key (ipsec_key_t *key, const u8 *data, u8 len) |
|
static void | ipsec_sa_stack (ipsec_sa_t *sa) |
| 'stack' (resolve the recursion for) the SA tunnel destination More...
|
|
void | ipsec_sa_set_crypto_alg (ipsec_sa_t *sa, ipsec_crypto_alg_t crypto_alg) |
|
void | ipsec_sa_set_integ_alg (ipsec_sa_t *sa, ipsec_integ_alg_t integ_alg) |
|
int | ipsec_sa_add (u32 id, u32 spi, ipsec_protocol_t proto, ipsec_crypto_alg_t crypto_alg, const ipsec_key_t *ck, ipsec_integ_alg_t integ_alg, const ipsec_key_t *ik, ipsec_sa_flags_t flags, u32 tx_table_id, u32 salt, const ip46_address_t *tun_src, const ip46_address_t *tun_dst, u32 *sa_out_index) |
|
u32 | ipsec_sa_del (u32 id) |
|
u8 | ipsec_is_sa_used (u32 sa_index) |
|
int | ipsec_set_sa_key (u32 id, const ipsec_key_t *ck, const ipsec_key_t *ik) |
|
u32 | ipsec_get_sa_index_by_sa_id (u32 sa_id) |
|
void | ipsec_sa_walk (ipsec_sa_walk_cb_t cb, void *ctx) |
|
static fib_node_t * | ipsec_sa_fib_node_get (fib_node_index_t index) |
| Function definition to get a FIB node from its index. More...
|
|
static void | ipsec_sa_last_lock_gone (fib_node_t *node) |
| Function definition to inform the FIB node that its last lock has gone. More...
|
|
static ipsec_sa_t * | ipsec_sa_from_fib_node (fib_node_t *node) |
|
static fib_node_back_walk_rc_t | ipsec_sa_back_walk (fib_node_t *node, fib_node_back_walk_ctx_t *ctx) |
| Function definition to backwalk a FIB node. More...
|
|
clib_error_t * | ipsec_sa_interface_init (vlib_main_t *vm) |
|
◆ ipsec_call_add_del_callbacks()
◆ ipsec_get_sa_index_by_sa_id()
u32 ipsec_get_sa_index_by_sa_id |
( |
u32 |
sa_id | ) |
|
◆ ipsec_is_sa_used()
u8 ipsec_is_sa_used |
( |
u32 |
sa_index | ) |
|
◆ ipsec_mk_key()
◆ ipsec_sa_add()
int ipsec_sa_add |
( |
u32 |
id, |
|
|
u32 |
spi, |
|
|
ipsec_protocol_t |
proto, |
|
|
ipsec_crypto_alg_t |
crypto_alg, |
|
|
const ipsec_key_t * |
ck, |
|
|
ipsec_integ_alg_t |
integ_alg, |
|
|
const ipsec_key_t * |
ik, |
|
|
ipsec_sa_flags_t |
flags, |
|
|
u32 |
tx_table_id, |
|
|
u32 |
salt, |
|
|
const ip46_address_t * |
tun_src, |
|
|
const ip46_address_t * |
tun_dst, |
|
|
u32 * |
sa_out_index |
|
) |
| |
◆ ipsec_sa_back_walk()
Function definition to backwalk a FIB node.
Definition at line 428 of file ipsec_sa.c.
◆ ipsec_sa_del()
◆ ipsec_sa_fib_node_get()
Function definition to get a FIB node from its index.
Definition at line 391 of file ipsec_sa.c.
◆ ipsec_sa_from_fib_node()
◆ ipsec_sa_interface_init()
◆ ipsec_sa_last_lock_gone()
static void ipsec_sa_last_lock_gone |
( |
fib_node_t * |
node | ) |
|
|
static |
Function definition to inform the FIB node that its last lock has gone.
Definition at line 406 of file ipsec_sa.c.
◆ ipsec_sa_set_crypto_alg()
◆ ipsec_sa_set_integ_alg()
◆ ipsec_sa_stack()
'stack' (resolve the recursion for) the SA tunnel destination
Definition at line 70 of file ipsec_sa.c.
◆ ipsec_sa_walk()
◆ ipsec_set_sa_key()
◆ ipsec_sa_counters
Initial value:= {
.name = "SA",
.stat_segment_name = "/net/ipsec/sa",
}
SA packet & bytes counters.
Definition at line 25 of file ipsec_sa.c.
◆ ipsec_sa_vft
Initial value:= {
}
static void ipsec_sa_last_lock_gone(fib_node_t *node)
Function definition to inform the FIB node that its last lock has gone.
static fib_node_t * ipsec_sa_fib_node_get(fib_node_index_t index)
Function definition to get a FIB node from its index.
static fib_node_back_walk_rc_t ipsec_sa_back_walk(fib_node_t *node, fib_node_back_walk_ctx_t *ctx)
Function definition to backwalk a FIB node.
Definition at line 439 of file ipsec_sa.c.