X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fethernet%2Farp_packet.h;h=206be4162d2db3188ef84056227e7db44dce20bc;hb=e9cebdf4c12adf7962ab2a2053789c93d70c33d3;hp=17e64f43049f9b102bc913896ab703381e930795;hpb=b3b2de71ceea0cc7ce18f89cc8180ed4a42e355d;p=vpp.git diff --git a/src/vnet/ethernet/arp_packet.h b/src/vnet/ethernet/arp_packet.h index 17e64f43049..206be4162d2 100644 --- a/src/vnet/ethernet/arp_packet.h +++ b/src/vnet/ethernet/arp_packet.h @@ -109,11 +109,11 @@ typedef enum typedef enum { - IP4_ARP_ERROR_DROP, + IP4_ARP_ERROR_THROTTLED, + IP4_ARP_ERROR_RESOLVED, + IP4_ARP_ERROR_NO_BUFFERS, IP4_ARP_ERROR_REQUEST_SENT, IP4_ARP_ERROR_NON_ARP_ADJ, - IP4_ARP_ERROR_REPLICATE_DROP, - IP4_ARP_ERROR_REPLICATE_FAIL, IP4_ARP_ERROR_NO_SOURCE_ADDRESS, } ip4_arp_error_t; @@ -156,7 +156,7 @@ typedef struct ethernet_arp_entry_flags_t flags; - u64 cpu_time_last_updated; + f64 time_last_updated; /** * The index of the adj-fib entry created @@ -164,9 +164,14 @@ typedef struct fib_node_index_t fib_entry_index; } ethernet_arp_ip4_entry_t; +ethernet_arp_ip4_entry_t *ip4_neighbors_pool (void); ethernet_arp_ip4_entry_t *ip4_neighbor_entries (u32 sw_if_index); u8 *format_ethernet_arp_ip4_entry (u8 * s, va_list * va); +void send_ip4_garp (vlib_main_t * vm, u32 sw_if_index); +void send_ip4_garp_w_addr (vlib_main_t * vm, + const ip4_address_t * ip4_addr, u32 sw_if_index); + #endif /* included_ethernet_arp_packet_h */ /*