31 #include <lacp/lacp.api_enum.h> 32 #include <lacp/lacp.api_types.h> 34 #define vl_print(handle, ...) vlib_cli_output (handle, __VA_ARGS__) 39 vl_print (handle, (char *)s); \ 43 #define REPLY_MSG_ID_BASE lm->msg_id_base 56 mp->_vl_msg_id = htons (VL_API_SW_INTERFACE_LACP_DETAILS + lm->
msg_id_base);
117 #include <lacp/lacp.api.c> 128 am->
is_mp_safe[VL_API_SW_INTERFACE_LACP_DUMP] = 1;
129 am->
is_mp_safe[VL_API_SW_INTERFACE_LACP_DETAILS] = 1;
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
static void vl_api_send_msg(vl_api_registration_t *rp, u8 *elem)
string bond_interface_name[64]
static void lacp_send_sw_interface_details(vl_api_registration_t *reg, lacp_interface_details_t *lacp_if, u32 context)
void vl_api_sw_interface_lacp_dump_t_handler(vl_api_sw_interface_lacp_dump_t *mp)
Message handler for lacp_dump API.
u16 partner_system_priority
vl_api_mac_address_t actor_system
void * vl_msg_api_alloc(int nbytes)
int lacp_dump_ifs(lacp_interface_details_t **out_lacpifs)
#define clib_memcpy(d, s, n)
u16 partner_port_priority
LACP interface details struct.
Reply for lacp dump request.
vl_api_mac_address_t partner_system
API main structure, used by both vpp and binary API clients.
An API client registration, only in vpp/vlib.
Dump lacp interfaces request.
u8 bond_interface_name[64]
#define vec_free(V)
Free vector's memory (no header).
clib_error_t * lacp_plugin_api_hookup(vlib_main_t *vm)
static vl_api_registration_t * vl_api_client_index_to_registration(u32 index)
u16 partner_port_priority
vl_api_interface_index_t sw_if_index
u16 partner_system_priority
string interface_name[64]
u16 actor_system_priority
u16 actor_system_priority
static api_main_t * vlibapi_get_main(void)
u8 * is_mp_safe
Message is mp safe vector.
#define vec_foreach(var, vec)
Vector iterator.
static void setup_message_id_table(snat_main_t *sm, api_main_t *am)
u16 msg_id_base
API message ID base.