]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/nexthop_group.h
lib,zebra: add api to enforce nexthop sort order when copying
[mirror_frr.git] / lib / nexthop_group.h
index c90b21737a7b45cb0911828aff568e8d208fb837..73b020283a98f1a4fb72f519ed3866e116683f81 100644 (file)
@@ -44,6 +44,13 @@ void nexthop_group_delete(struct nexthop_group **nhg);
 
 void nexthop_group_copy(struct nexthop_group *to,
                        struct nexthop_group *from);
+
+/*
+ * Copy a list of nexthops in 'nh' to an nhg, enforcing canonical sort order
+ */
+void nexthop_group_copy_nh_sorted(struct nexthop_group *nhg,
+                                 const struct nexthop *nh);
+
 void copy_nexthops(struct nexthop **tnh, const struct nexthop *nh,
                   struct nexthop *rparent);