summaryrefslogtreecommitdiffstats
path: root/lib/nexthop.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-06-02 01:26:53 +0200
committerStephen Worley <sworley@cumulusnetworks.com>2019-05-23 18:21:15 +0200
commit776c3e90c161ed085897258754477e3fd183b1d2 (patch)
treeec5c2bd5a3389088a0b307bd97ced33645b26d9f /lib/nexthop.h
parentMerge pull request #4385 from manuhalo/fix_deprecate_retain (diff)
downloadfrr-776c3e90c161ed085897258754477e3fd183b1d2.tar.xz
frr-776c3e90c161ed085897258754477e3fd183b1d2.zip
lib: Add nexthop_cmp
Add function to allow us to have a sorted order of nexthops. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to '')
-rw-r--r--lib/nexthop.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/nexthop.h b/lib/nexthop.h
index 663acaeb6..58e8e0ebb 100644
--- a/lib/nexthop.h
+++ b/lib/nexthop.h
@@ -139,6 +139,7 @@ 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 int nexthop_cmp(const struct nexthop *nh1, const struct nexthop *nh2);
extern const char *nexthop_type_to_str(enum nexthop_types_t nh_type);
extern int nexthop_same_no_recurse(const struct nexthop *next1,