26 #include <vpp/app/version.h> 30 #include <adl/adl.api_enum.h> 31 #include <adl/adl.api_types.h> 33 #define vl_print(handle, ...) vlib_cli_output (handle, __VA_ARGS__) 35 #define REPLY_MSG_ID_BASE am->msg_id_base 38 #define foreach_vpe_api_msg \ 39 _(ADL_INTERFACE_ENABLE_DISABLE, adl_interface_enable_disable) \ 40 _(ADL_LIST_ENABLE_DISABLE, adl_allowlist_enable_disable) 47 (
u32 sw_if_index,
int enable_disable)
56 vl_api_adl_interface_enable_disable_reply_t *rmp;
69 REPLY_MACRO (VL_API_ADL_INTERFACE_ENABLE_DISABLE_REPLY);
86 vl_api_adl_allowlist_enable_disable_reply_t *rmp;
103 REPLY_MACRO (VL_API_ADL_ALLOWLIST_ENABLE_DISABLE_REPLY);
106 #include <adl/adl.api.c> 111 void register_vl_api_cop_interface_enable_disable_callback (
void *);
120 register_vl_api_cop_interface_enable_disable_callback
int vl_api_cop_whitelist_enable_disable_callback(adl_allowlist_enable_disable_args_t *a)
vl_api_interface_index_t sw_if_index
vl_api_interface_index_t sw_if_index
#define VLIB_INIT_FUNCTION(x)
int adl_allowlist_enable_disable(adl_allowlist_enable_disable_args_t *a)
int adl_interface_enable_disable(u32 sw_if_index, int enable_disable)
adl: enable/disable allow list filtration features on an interface Note: the supplied fib_id must mat...
int vl_api_cop_interface_enable_disable_callback(u32 sw_if_index, int enable_disable)
void register_vl_api_cop_whitelist_enable_disable_callback(void *cb)
static void vl_api_adl_allowlist_enable_disable_t_handler(vl_api_adl_allowlist_enable_disable_t *mp)
static void setup_message_id_table(api_main_t *am)
#define BAD_SW_IF_INDEX_LABEL
static void vl_api_adl_interface_enable_disable_t_handler(vl_api_adl_interface_enable_disable_t *mp)
adl: enable/disable filtration features on an interface
static clib_error_t * adl_api_init(vlib_main_t *vm)
vl_api_interface_index_t sw_if_index
#define VALIDATE_SW_IF_INDEX(mp)