26 u32 dev_instance = va_arg (*args,
u32);
27 return format (s,
"ipsec%d", dev_instance);
34 clib_warning (
"you shouldn't be here, leaking buffers...");
66 return VNET_API_ERROR_INVALID_VALUE;
69 memset (t, 0,
sizeof (*t));
72 memset (sa, 0,
sizeof (*sa));
82 memset (sa, 0,
sizeof (*sa));
104 ipsec_hw_class.index,
122 return VNET_API_ERROR_INVALID_VALUE;
182 return VNET_API_ERROR_INVALID_VALUE;
VNET_DEVICE_CLASS(ipsec_device_class, static)
#define hash_set(h, key, value)
ipsec_tunnel_if_t * tunnel_interfaces
ip46_address_t tunnel_src_addr
#define hash_unset(h, key)
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
ipsec_integ_alg_t integ_alg
#define vec_add1(V, E)
Add 1 element to end of vector (unspecified alignment).
static uword dummy_interface_tx(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
void ip4_register_protocol(u32 protocol, u32 node_index)
uword * ipsec_if_pool_index_by_key
vlib_node_registration_t ipsec_if_input_node
clib_error_t * ipsec_tunnel_if_init(vlib_main_t *vm)
u32 ipsec_add_del_tunnel_if(vnet_main_t *vnm, ipsec_add_del_tunnel_args_t *args)
#define VLIB_INIT_FUNCTION(x)
always_inline uword pool_elts(void *v)
#define clib_warning(format, args...)
int ipsec_set_interface_key(vnet_main_t *vnm, u32 hw_if_index, ipsec_if_set_key_type_t type, u8 alg, u8 *key)
u32 vnet_register_interface(vnet_main_t *vnm, u32 dev_class_index, u32 dev_instance, u32 hw_class_index, u32 hw_instance)
#define pool_elt_at_index(p, i)
u8 * format_ipsec_if_output_trace(u8 *s, va_list *args)
ip46_address_t tunnel_dst_addr
#define pool_get_aligned(P, E, A)
vlib_node_registration_t ipsec_if_output_node
(constructor) VLIB_REGISTER_NODE (ipsec_if_output_node)
#define clib_memcpy(a, b, c)
always_inline vnet_hw_interface_t * vnet_get_hw_interface(vnet_main_t *vnm, u32 hw_if_index)
#define hash_create(elts, value_bytes)
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
VNET_HW_INTERFACE_CLASS(ipsec_hw_class)
u32 * free_tunnel_if_indices
ipsec_crypto_alg_t crypto_alg
static u8 * format_ipsec_name(u8 *s, va_list *args)
clib_error_t * vnet_sw_interface_set_flags(vnet_main_t *vnm, u32 sw_if_index, u32 flags)
#define CLIB_CACHE_LINE_BYTES