31 #define vl_msg_id(n,h) n, 34 #include <ila/ila.api.h> 42 #include <ila/ila.api.h> 47 #include <ila/ila.api.h> 50 #define vl_print(handle, ...) vlib_cli_output (handle, __VA_ARGS__) 53 #define vl_api_version(n,v) static u32 api_version=(v); 54 #include <ila/ila.api.h> 59 vl_print (handle, (char *)s); \ 63 #define REPLY_MACRO(t) \ 65 unix_shared_memory_queue_t * q = \ 66 vl_api_client_index_to_input_queue (mp->client_index); \ 70 rmp = vl_msg_api_alloc (sizeof (*rmp)); \ 71 rmp->_vl_msg_id = ntohs((t)+ila_api_main.msg_id_base); \ 72 rmp->context = mp->context; \ 73 rmp->retval = ntohl(rv); \ 75 vl_msg_api_send_shmem (q, (u8 *)&rmp); \ 92 s =
format (0,
"SCRIPT: ila_iface ");
121 s =
format (0,
"SCRIPT: ila_add_del_entry ");
134 #define foreach_ila_plugin_api_msg \ 135 _(ILA_IFACE, ila_iface) \ 136 _(ILA_ADD_DEL_ENTRY, ila_add_del_entry) 141 u8 *name =
format (0,
"ila_%08x%c", api_version, 0);
146 vl_msg_api_set_handlers((VL_API_##N + ila_api_main.msg_id_base), \ 148 vl_api_##n##_t_handler, \ 150 vl_api_##n##_t_endian, \ 151 vl_api_##n##_t_print, \ 152 sizeof(vl_api_##n##_t), 1);
u8 * format_half_ip6_address(u8 *s, va_list *va)
static void vl_api_ila_add_del_entry_t_handler(vl_api_ila_add_del_entry_t *mp)
#define foreach_ila_plugin_api_msg
int ila_add_del_entry(ila_add_del_entry_args_t *args)
static void * vl_api_ila_iface_t_print(vl_api_ila_iface_t *mp, void *handle)
#define VLIB_INIT_FUNCTION(x)
u8 * format_ila_csum_mode(u8 *s, va_list *va)
ila_csum_mode_t csum_mode
Add or delete an ILA entry.
u8 * format_ila_direction(u8 *s, va_list *args)
static void * vl_api_ila_add_del_entry_t_print(vl_api_ila_add_del_entry_t *mp, void *handle)
static clib_error_t * ila_api_init(vlib_main_t *vm)
ip6_address_t sir_address
static void vl_api_ila_iface_t_handler(vl_api_ila_iface_t *mp)
Enable ILA processing of SIR-to-ILA packets on a given interface.
u16 vl_msg_api_get_msg_ids(char *name, int n)
ila_api_main_t ila_api_main
u8 * format_ila_type(u8 *s, va_list *args)
int ila_interface(u32 sw_if_index, u8 disable)