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>
Proxy ARP add / del request.
Proxy ARP interface dump request.
#define REPLY_MSG_ID_BASE
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
static void vl_api_send_msg(vl_api_registration_t *rp, u8 *elem)
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)
int arp_proxy_del(u32 fib_index, const ip4_address_t *lo_addr, const ip4_address_t *hi_addr)
void * vl_msg_api_alloc(int nbytes)
enum walk_rc_t_ walk_rc_t
Walk return code.
Proxy ARP add / del interface request.
void proxy_arp_intfc_walk(proxy_arp_intf_walk_t cb, void *data)
#define VLIB_INIT_FUNCTION(x)
static void vl_api_proxy_arp_intfc_enable_disable_t_handler(vl_api_proxy_arp_intfc_enable_disable_t *mp)
u32 fib_table_find(fib_protocol_t proto, u32 table_id)
Get the index of the FIB for a Table-ID.
int arp_proxy_add(u32 fib_index, const ip4_address_t *lo_addr, const ip4_address_t *hi_addr)
static u32 arp_base_msg_id
Base message ID fot the plugin.
Proxy ARP dump details reply.
vl_api_interface_index_t sw_if_index
static walk_rc_t send_proxy_arp_intfc_details(u32 sw_if_index, void *data)
int arp_proxy_disable(u32 sw_if_index)
An API client registration, only in vpp/vlib.
vl_api_registration_t * reg
#define BAD_SW_IF_INDEX_LABEL
Proxy ARP interface dump details reply.
static vl_api_registration_t * vl_api_client_index_to_registration(u32 index)
struct proxy_arp_walk_ctx_t_ proxy_arp_walk_ctx_t
int arp_proxy_enable(u32 sw_if_index)
void ip4_address_decode(const vl_api_ip4_address_t in, ip4_address_t *out)
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)
static void vl_api_proxy_arp_add_del_t_handler(vl_api_proxy_arp_add_del_t *mp)
static void setup_message_id_table(snat_main_t *sm, api_main_t *am)
void proxy_arp_walk(proxy_arp_walk_t cb, void *data)
vl_api_interface_index_t sw_if_index
#define VALIDATE_SW_IF_INDEX(mp)
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)