summaryrefslogtreecommitdiff
path: root/zebra/rib.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-08-09 19:56:08 -0400
committerDonald Sharp <sharpd@nvidia.com>2022-08-17 16:04:50 -0400
commitb0385873fafa4ce92f9e16469ab44f01eadd1b9f (patch)
treead759697d4661ab82833f46b8db08de603842ec1 /zebra/rib.h
parentd7ac4c4d8840d14c50924bffe2497b09c7f8b795 (diff)
zebra: Create a zebra_rib_route_entry_new function and use it
Abstract the creation of the route_entry and use it. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/rib.h')
-rw-r--r--zebra/rib.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/zebra/rib.h b/zebra/rib.h
index 2e8b05f9de..dec5b2b8d6 100644
--- a/zebra/rib.h
+++ b/zebra/rib.h
@@ -344,6 +344,12 @@ extern void _route_entry_dump(const char *func, union prefixconstptr pp,
union prefixconstptr src_pp,
const struct route_entry *re);
+struct route_entry *
+zebra_rib_route_entry_new(vrf_id_t vrf_id, int type, uint8_t instance,
+ uint32_t flags, uint32_t nhe_id, uint32_t table_id,
+ uint32_t metric, uint32_t mtu, uint8_t distance,
+ route_tag_t tag);
+
#define ZEBRA_RIB_LOOKUP_ERROR -1
#define ZEBRA_RIB_FOUND_EXACT 0
#define ZEBRA_RIB_FOUND_NOGATE 1