diff options
| author | Stephen Worley <sworley@cumulusnetworks.com> | 2019-05-22 15:34:07 -0400 | 
|---|---|---|
| committer | Stephen Worley <sworley@cumulusnetworks.com> | 2019-05-23 12:21:15 -0400 | 
| commit | a5a2d802d7f4b44423dedf3f7876bdb28aebe844 (patch) | |
| tree | a70af7ddf7ce2308a22d54544975522ff5e67e76 /lib/nexthop.h | |
| parent | 24cfec84188bc8f69eef873302824dc6f49b5339 (diff) | |
lib,zebra,bgpd,pbrd: Compare nexthops without labels
Allow label ignoring when comparing nexthops. Specifically,
add another functon nexthop_same_no_labels() that shares
a path with nexthop_same() but doesn't check labels.
rib_delete() needs to ignore labels in this case.
Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Diffstat (limited to 'lib/nexthop.h')
| -rw-r--r-- | lib/nexthop.h | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/nexthop.h b/lib/nexthop.h index 48efc762c5..5b6c12d4ef 100644 --- a/lib/nexthop.h +++ b/lib/nexthop.h @@ -139,6 +139,8 @@ void nexthop_del_labels(struct nexthop *);  uint32_t nexthop_hash(const struct nexthop *nexthop);  extern bool nexthop_same(const struct nexthop *nh1, const struct nexthop *nh2); +extern bool nexthop_same_no_labels(const struct nexthop *nh1, +				   const struct nexthop *nh2);  extern int nexthop_cmp(const struct nexthop *nh1, const struct nexthop *nh2);  extern const char *nexthop_type_to_str(enum nexthop_types_t nh_type);  | 
