|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
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)",
#define VALIDATE_SW_IF_INDEX(mp)
vl_api_interface_index_t sw_if_index
static clib_error_t * urpf_api_init(vlib_main_t *vm)
void urpf_update(urpf_mode_t mode, u32 sw_if_index, ip_address_family_t af, vlib_dir_t dir)
static int urpf_mode_decode(vl_api_urpf_mode_t in, urpf_mode_t *out)
vl_api_tunnel_mode_t mode
vl_api_address_family_t af
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
bool is_input[default=true]
static u32 urpf_base_msg_id
Base message ID fot the plugin.
static void setup_message_id_table(api_main_t *am)
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.
#define BAD_SW_IF_INDEX_LABEL
#define VLIB_INIT_FUNCTION(x)
enum urpf_mode_t_ urpf_mode_t
clib_error_t *() vlib_init_function_t(struct vlib_main_t *vm)
Enable uRPF on a given interface in a given direction.
static void vl_api_urpf_update_t_handler(vl_api_urpf_update_t *mp)
enum ip_address_family_t_ ip_address_family_t