20 #include <vpp/app/version.h> 27 #include <urpf/urpf.api_enum.h> 28 #include <urpf/urpf.api_types.h> 34 #define REPLY_MSG_ID_BASE urpf_base_msg_id 44 else if (URPF_API_MODE_##a == in) \ 46 *out = URPF_MODE_##a; \ 51 return (VNET_API_ERROR_INVALID_VALUE);
57 vl_api_urpf_update_reply_t *rmp;
82 #include <urpf/urpf.api.c> 97 .version = VPP_BUILD_VER,
98 .description =
"Unicast Reverse Path Forwarding (uRPF)",
int ip_address_family_decode(vl_api_address_family_t af, ip_address_family_t *out)
Conversion functions to/from (decode/encode) API types to VPP internal types.
vl_api_interface_index_t sw_if_index
static u32 urpf_base_msg_id
Base message ID fot the plugin.
#define VLIB_INIT_FUNCTION(x)
static void vl_api_urpf_update_t_handler(vl_api_urpf_update_t *mp)
vl_api_address_family_t af
vl_api_tunnel_mode_t mode
static void setup_message_id_table(api_main_t *am)
#define BAD_SW_IF_INDEX_LABEL
bool is_input[default=true]
Enable uRPF on a given interface in a given direction.
static clib_error_t * urpf_api_init(vlib_main_t *vm)
static int urpf_mode_decode(vl_api_urpf_mode_t in, urpf_mode_t *out)
enum ip_address_family_t_ ip_address_family_t
void urpf_update(urpf_mode_t mode, u32 sw_if_index, ip_address_family_t af, vlib_dir_t dir)
enum urpf_mode_t_ urpf_mode_t
#define VALIDATE_SW_IF_INDEX(mp)