aboutsummaryrefslogtreecommitdiffstats
path: root/vnet/vnet/ethernet/arp_packet.h
diff options
context:
space:
mode:
authorPavel Kotucek <pkotucek@cisco.com>2016-12-05 08:27:37 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2016-12-06 12:08:46 +0000
commit3e046ea96e7e9d98a8dd67eab84031e1d71b4422 (patch)
tree3a1b3b25fd28808236fc4179f20d893aecac2ad7 /vnet/vnet/ethernet/arp_packet.h
parent397fd7d39f023887e428de37a1929c366a99b8d5 (diff)
api: missing support for dumping of neighbours (VPP-333)
added API to dump ipv4/ipv6 neighboors (added by ip_neighbor_add_del). Change-Id: I33209a3d06beba64d68465c0892a9f4c65657334 Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
Diffstat (limited to 'vnet/vnet/ethernet/arp_packet.h')
-rw-r--r--vnet/vnet/ethernet/arp_packet.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/vnet/vnet/ethernet/arp_packet.h b/vnet/vnet/ethernet/arp_packet.h
index 8befb6c5115..e762ffa4018 100644
--- a/vnet/vnet/ethernet/arp_packet.h
+++ b/vnet/vnet/ethernet/arp_packet.h
@@ -140,6 +140,28 @@ typedef struct
};
} ethernet_arp_header_t;
+typedef struct
+{
+ u32 sw_if_index;
+ ip4_address_t ip4_address;
+
+ u8 ethernet_address[6];
+
+ u16 flags;
+#define ETHERNET_ARP_IP4_ENTRY_FLAG_STATIC (1 << 0)
+#define ETHERNET_ARP_IP4_ENTRY_FLAG_DYNAMIC (1 << 1)
+
+ u64 cpu_time_last_updated;
+
+ /**
+ * The index of the adj-fib entry created
+ */
+ fib_node_index_t fib_entry_index;
+} ethernet_arp_ip4_entry_t;
+
+ethernet_arp_ip4_entry_t *ip4_neighbor_entries (u32 sw_if_index);
+u8 *format_ethernet_arp_ip4_entry (u8 * s, va_list * va);
+
#endif /* included_ethernet_arp_packet_h */
/*