35 #define vl_print(handle, ...) vlib_cli_output (handle, __VA_ARGS__) 42 #define foreach_vpe_api_msg \ 43 _(P2P_ETHERNET_ADD, p2p_ethernet_add) \ 44 _(P2P_ETHERNET_DEL, p2p_ethernet_del) 85 #define vl_msg_name_crc_list 87 #undef vl_msg_name_crc_list 92 #define _(id,n,crc) vl_msg_api_add_msg_name_crc (am, #n "_" #crc, id); 93 foreach_vl_msg_name_crc_p2p_ethernet;
103 vl_msg_api_set_handlers(VL_API_##N, #n, \ 104 vl_api_##n##_t_handler, \ 106 vl_api_##n##_t_endian, \ 107 vl_api_##n##_t_print, \ 108 sizeof(vl_api_##n##_t), 1); void vl_api_p2p_ethernet_del_t_handler(vl_api_p2p_ethernet_del_t *mp)
static void setup_message_id_table(api_main_t *am)
VLIB_API_INIT_FUNCTION(p2p_ethernet_api_hookup)
int p2p_ethernet_add_del(vlib_main_t *vm, u32 parent_if_index, u8 *client_mac, int is_add)
#define clib_memcpy(a, b, c)
#define foreach_vpe_api_msg
static vlib_main_t * vlib_get_main(void)
void vl_api_p2p_ethernet_add_t_handler(vl_api_p2p_ethernet_add_t *mp)
static clib_error_t * p2p_ethernet_api_hookup(vlib_main_t *vm)