diff options
| author | Stephen Worley <sworley@cumulusnetworks.com> | 2020-03-30 10:26:17 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-30 10:26:17 -0400 |
| commit | ff82bbbb912d84a4a9bc22a7efe7f51adada02eb (patch) | |
| tree | 3027b6a8dc9cfa41f5679915ee677bdf36296e86 /zebra/rib.h | |
| parent | a326a812b30e5c11b9d67f9a9434342a9cf6008e (diff) | |
| parent | accf6280fcdd0c29897234ad9786d9f3d0509b44 (diff) | |
Merge pull request #5901 from mjstapp/backup_nh_prep
zebra, lib: Backup nexthop (path) prep work
Diffstat (limited to 'zebra/rib.h')
| -rw-r--r-- | zebra/rib.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/zebra/rib.h b/zebra/rib.h index 931c97638e..3717a12814 100644 --- a/zebra/rib.h +++ b/zebra/rib.h @@ -107,7 +107,7 @@ struct route_entry { /* Uptime. */ time_t uptime; - /* Type fo this route. */ + /* Type of this route. */ int type; /* VRF identifier. */ @@ -347,10 +347,16 @@ extern int rib_add(afi_t afi, safi_t safi, vrf_id_t vrf_id, int type, struct prefix_ipv6 *src_p, const struct nexthop *nh, uint32_t nhe_id, uint32_t table_id, uint32_t metric, uint32_t mtu, uint8_t distance, route_tag_t tag); - +/* + * Multipath route apis. + */ extern int rib_add_multipath(afi_t afi, safi_t safi, struct prefix *p, struct prefix_ipv6 *src_p, struct route_entry *re, struct nexthop_group *ng); +extern int rib_add_multipath_nhe(afi_t afi, safi_t safi, struct prefix *p, + struct prefix_ipv6 *src_p, + struct route_entry *re, + struct nhg_hash_entry *nhe); extern void rib_delete(afi_t afi, safi_t safi, vrf_id_t vrf_id, int type, unsigned short instance, int flags, struct prefix *p, |
