|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
23 #include <vpp/app/version.h>
30 #include <vnet/arp/arp.api_enum.h>
31 #include <vnet/arp/arp.api_types.h>
37 #define REPLY_MSG_ID_BASE arp_base_msg_id
44 vl_api_proxy_arp_add_del_reply_t *rmp;
53 rv = VNET_API_ERROR_NO_SUCH_FIB;
89 mp->
proxy.table_id = htonl (fib_index);
156 vl_api_proxy_arp_intfc_enable_disable_reply_t *rmp;
168 REPLY_MACRO (VL_API_PROXY_ARP_INTFC_ENABLE_DISABLE_REPLY);
171 #include <vnet/arp/arp.api.c>
#define VALIDATE_SW_IF_INDEX(mp)
static vl_api_registration_t * vl_api_client_index_to_registration(u32 index)
int arp_proxy_add(u32 fib_index, const ip4_address_t *lo_addr, const ip4_address_t *hi_addr)
Proxy ARP add / del request.
void ip4_address_decode(const vl_api_ip4_address_t in, ip4_address_t *out)
int arp_proxy_del(u32 fib_index, const ip4_address_t *lo_addr, const ip4_address_t *hi_addr)
static void vl_api_proxy_arp_intfc_enable_disable_t_handler(vl_api_proxy_arp_intfc_enable_disable_t *mp)
static void vl_api_send_msg(vl_api_registration_t *rp, u8 *elem)
static walk_rc_t send_proxy_arp_details(const ip4_address_t *lo_addr, const ip4_address_t *hi_addr, u32 fib_index, void *data)
void proxy_arp_walk(proxy_arp_walk_t cb, void *data)
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
static u32 arp_base_msg_id
Base message ID fot the plugin.
Proxy ARP add / del interface request.
vl_api_interface_index_t sw_if_index
static void setup_message_id_table(api_main_t *am)
static clib_error_t * arp_api_init(vlib_main_t *vm)
static void vl_api_proxy_arp_dump_t_handler(vl_api_proxy_arp_dump_t *mp)
Proxy ARP interface dump details reply.
int arp_proxy_disable(u32 sw_if_index)
An API client registration, only in vpp/vlib.
int arp_proxy_enable(u32 sw_if_index)
Proxy ARP interface dump request.
vl_api_registration_t * reg
struct proxy_arp_walk_ctx_t_ proxy_arp_walk_ctx_t
#define BAD_SW_IF_INDEX_LABEL
void proxy_arp_intfc_walk(proxy_arp_intf_walk_t cb, void *data)
static void vl_api_proxy_arp_add_del_t_handler(vl_api_proxy_arp_add_del_t *mp)
#define VLIB_INIT_FUNCTION(x)
static walk_rc_t send_proxy_arp_intfc_details(u32 sw_if_index, void *data)
static void vl_api_proxy_arp_intfc_dump_t_handler(vl_api_proxy_arp_intfc_dump_t *mp)
void ip4_address_encode(const ip4_address_t *in, vl_api_ip4_address_t out)
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
clib_error_t *() vlib_init_function_t(struct vlib_main_t *vm)
Proxy ARP dump details reply.
u32 fib_table_find(fib_protocol_t proto, u32 table_id)
Get the index of the FIB for a Table-ID.
vl_api_interface_index_t sw_if_index
enum walk_rc_t_ walk_rc_t
Walk return code.
#define REPLY_MSG_ID_BASE
void * vl_msg_api_alloc(int nbytes)