|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
18 #ifndef VAPI_INTERNAL_H
19 #define VAPI_INTERNAL_H
41 typedef struct __attribute__ ((__packed__))
47 typedef struct __attribute__ ((__packed__))
57 h->_vl_msg_id = htobe16 (
h->_vl_msg_id);
63 h->_vl_msg_id = be16toh (
h->_vl_msg_id);
69 h->_vl_msg_id = htobe16 (
h->_vl_msg_id);
75 h->_vl_msg_id = be16toh (
h->_vl_msg_id);
106 void (*swap_to_be) (
void *payload);
107 void (*swap_to_host) (
void *payload);
bool vapi_requests_empty(vapi_ctx_t ctx)
int vapi_get_client_index(vapi_ctx_t ctx)
size_t vapi_get_message_count()
vapi_error_e vapi_producer_unlock(vapi_ctx_t ctx)
bool vapi_is_nonblocking(vapi_ctx_t ctx)
static void vapi_type_msg_header1_t_ntoh(vapi_type_msg_header1_t *h)
u32 vapi_gen_req_context(vapi_ctx_t ctx)
int vapi_get_payload_offset(vapi_msg_id_t id)
unsigned int context_offset
vapi_msg_id_t vapi_lookup_vapi_msg_id_t(vapi_ctx_t ctx, u16 vl_msg_id)
void(*)(void *payload) vapi_get_swap_to_be_func(vapi_msg_id_t id)
bool vapi_requests_full(vapi_ctx_t ctx)
bool vapi_msg_is_with_context(vapi_msg_id_t id)
void vapi_store_request(vapi_ctx_t ctx, u32 context, bool is_dump, vapi_cb_t callback, void *callback_ctx)
vapi_error_e vapi_producer_lock(vapi_ctx_t ctx)
size_t vapi_get_max_request_count(vapi_ctx_t ctx)
size_t vapi_get_message_size(vapi_msg_id_t id)
const char * vapi_get_msg_name(vapi_msg_id_t id)
void(* generic_swap_fn_t)(void *payload)
unsigned int vapi_msg_id_t
static void vapi_type_msg_header2_t_hton(vapi_type_msg_header2_t *h)
const char * name_with_crc
unsigned int payload_offset
vapi_error_e(* vapi_cb_t)(struct vapi_ctx_s *, void *, vapi_error_e, bool, void *)
vapi_msg_id_t vapi_register_msg(vapi_message_desc_t *msg)
static void vapi_type_msg_header1_t_hton(vapi_type_msg_header1_t *h)
static void vapi_type_msg_header2_t_ntoh(vapi_type_msg_header2_t *h)
generic_swap_fn_t swap_to_host
size_t vapi_get_context_offset(vapi_msg_id_t id)
generic_swap_fn_t swap_to_be
u16 vapi_lookup_vl_msg_id(vapi_ctx_t ctx, vapi_msg_id_t id)
size_t vapi_get_request_count(vapi_ctx_t ctx)
void(*)(void *payload) vapi_get_swap_to_host_func(vapi_msg_id_t id)