|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
27 p =
hash_get (
im->spd_index_by_spd_id, spd_id);
29 return VNET_API_ERROR_ENTRY_ALREADY_EXISTS;
31 return VNET_API_ERROR_NO_SUCH_ENTRY;
38 return VNET_API_ERROR_INVALID_VALUE;
42 ipsec_set_interface_spd(vm, k, spd_id, 0);
46 #define _(s,v) vec_free(spd->policies[IPSEC_SPD_POLICY_##s]);
55 spd_index = spd -
im->spds;
57 hash_set (
im->spd_index_by_spd_id, spd_id, spd_index);
72 p =
hash_get (
im->spd_index_by_spd_id, spd_id);
74 return VNET_API_ERROR_SYSCALL_ERROR_1;
80 return VNET_API_ERROR_SYSCALL_ERROR_2;
vnet_interface_main_t * im
int ipsec_add_del_spd(vlib_main_t *vm, u32 spd_id, int is_add)
Add/Delete a SPD.
#define foreach_ipsec_spd_policy_type
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
#define pool_put(P, E)
Free an object E in pool P.
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
int ipsec_set_interface_spd(vlib_main_t *vm, u32 sw_if_index, u32 spd_id, int is_add)
Bind/attach a SPD to an interface.
u32 id
the User's ID for this policy
#define hash_set(h, key, value)
#define hash_foreach(key_var, value_var, h, body)
#define pool_get(P, E)
Allocate an object E from a pool P (unspecified alignment).
A Secruity Policy Database.
int vnet_feature_enable_disable(const char *arc_name, const char *node_name, u32 sw_if_index, int enable_disable, void *feature_config, u32 n_feature_config_bytes)
#define hash_unset(h, key)
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
vl_api_interface_index_t sw_if_index