diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2021-08-09 08:01:06 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2021-08-09 08:06:33 -0400 | 
| commit | 38c764dde42b605e12a35d3bcb5b93cf72272d30 (patch) | |
| tree | 31e90d3cb8e321f37449e26d9ba3bbe83904682d /zebra/rib.h | |
| parent | f94a7703c0725766f7dd91931718d3869ed28116 (diff) | |
zebra: Properly note add/update for rib_add_multipath_nhe
When calling rib_add_multipath_nhe ensure that we have
well aligned return codes that mean something so that
interersted parties can properly handle the situation.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/rib.h')
| -rw-r--r-- | zebra/rib.h | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/zebra/rib.h b/zebra/rib.h index 31d9dfd265..a663575e10 100644 --- a/zebra/rib.h +++ b/zebra/rib.h @@ -403,6 +403,11 @@ extern int rib_add(afi_t afi, safi_t safi, vrf_id_t vrf_id, int type,  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); +/* + * -1 -> some sort of error + *  0 -> an add + *  1 -> an update + */  extern int rib_add_multipath_nhe(afi_t afi, safi_t safi, struct prefix *p,  				 struct prefix_ipv6 *src_p,  				 struct route_entry *re,  | 
