38 #define vl_print(handle, ...) vlib_cli_output (handle, __VA_ARGS__) 45 #define foreach_vpe_api_msg \ 46 _(COP_INTERFACE_ENABLE_DISABLE, cop_interface_enable_disable) \ 47 _(COP_WHITELIST_ENABLE_DISABLE, cop_whitelist_enable_disable) 52 vl_api_cop_interface_enable_disable_reply_t *rmp;
65 REPLY_MACRO (VL_API_COP_INTERFACE_ENABLE_DISABLE_REPLY);
71 vl_api_cop_whitelist_enable_disable_reply_t *rmp;
88 REPLY_MACRO (VL_API_COP_WHITELIST_ENABLE_DISABLE_REPLY);
98 #define vl_msg_name_crc_list 100 #undef vl_msg_name_crc_list 105 #define _(id,n,crc) vl_msg_api_add_msg_name_crc (am, #n "_" #crc, id); 106 foreach_vl_msg_name_crc_cop;
116 vl_msg_api_set_handlers(VL_API_##N, #n, \ 117 vl_api_##n##_t_handler, \ 119 vl_api_##n##_t_endian, \ 120 vl_api_##n##_t_print, \ 121 sizeof(vl_api_##n##_t), 1); VLIB_API_INIT_FUNCTION(cop_api_hookup)
cop: enable/disable whitelist filtration features on an interface Note: the supplied fib_id must matc...
static void vl_api_cop_whitelist_enable_disable_t_handler(vl_api_cop_whitelist_enable_disable_t *mp)
static clib_error_t * cop_api_hookup(vlib_main_t *vm)
int cop_whitelist_enable_disable(cop_whitelist_enable_disable_args_t *a)
static void setup_message_id_table(api_main_t *am)
#define BAD_SW_IF_INDEX_LABEL
cop: enable/disable junk filtration features on an interface
static void vl_api_cop_interface_enable_disable_t_handler(vl_api_cop_interface_enable_disable_t *mp)
int cop_interface_enable_disable(u32 sw_if_index, int enable_disable)
#define foreach_vpe_api_msg
#define VALIDATE_SW_IF_INDEX(mp)