/
phprus
/
github_dpdk
Обзор
Документация
Войти
/
phprus
/
github_dpdk
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
app/graph/route.h
37 строк
712 B
Robin Jarry
node: use IPv6 address structure and utils
18 окт 2024, 18:47
18 окт 2024, 18:47
2cfebc3
Код
Авторство
О чём код?
/* SPDX-License-Identifier: BSD-3-Clause * Copyright(c) 2023 Marvell. */ #ifndef APP_GRAPH_ROUTE_H #define APP_GRAPH_ROUTE_H #include <rte_ip6.h> #define MAX_ROUTE_ENTRIES 32 struct route_ipv4_config { TAILQ_ENTRY(route_ipv4_config) next; uint32_t ip; uint32_t netmask; uint32_t via; bool is_used; }; TAILQ_HEAD(ip4_route, route_ipv4_config); struct route_ipv6_config { TAILQ_ENTRY(route_ipv6_config) next; struct rte_ipv6_addr ip; struct rte_ipv6_addr mask; struct rte_ipv6_addr gateway; bool is_used; }; TAILQ_HEAD(ip6_route, route_ipv6_config); int route_ip4_add_to_lookup(void); int route_ip6_add_to_lookup(void); void route_ip4_list_clean(void); void route_ip6_list_clean(void); #endif