da796d2755
To prevent code duplication from the addition of lookup methods the routes specified in lpm should be moved to a common header. Signed-off-by: Conor Walsh <conor.walsh@intel.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com> Acked-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
20 lines
373 B
C
20 lines
373 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright(c) 2021 Intel Corporation
|
|
*/
|
|
|
|
struct ipv4_l3fwd_route {
|
|
uint32_t ip;
|
|
uint8_t depth;
|
|
uint8_t if_out;
|
|
};
|
|
|
|
struct ipv6_l3fwd_route {
|
|
uint8_t ip[16];
|
|
uint8_t depth;
|
|
uint8_t if_out;
|
|
};
|
|
|
|
extern const struct ipv4_l3fwd_route ipv4_l3fwd_route_array[8];
|
|
|
|
extern const struct ipv6_l3fwd_route ipv6_l3fwd_route_array[8];
|