1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright(c) 2023 Marvell. 3 */ 4 5 #ifndef APP_GRAPH_NEIGH_PRIV_H 6 #define APP_GRAPH_NEIGH_PRIV_H 7 8 #include <rte_ip6.h> 9 10 #define MAX_NEIGH_ENTRIES 32 11 12 struct neigh_ipv4_config { 13 TAILQ_ENTRY(neigh_ipv4_config) next; 14 uint32_t ip; 15 uint64_t mac; 16 bool is_used; 17 }; 18 19 TAILQ_HEAD(neigh4_head, neigh_ipv4_config); 20 21 struct neigh_ipv6_config { 22 TAILQ_ENTRY(neigh_ipv6_config) next; 23 struct rte_ipv6_addr ip; 24 uint64_t mac; 25 bool is_used; 26 }; 27 28 TAILQ_HEAD(neigh6_head, neigh_ipv6_config); 29 30 #endif 31