]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: Modify zebra to order nexthops received 4325/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 24 Jan 2019 15:13:22 +0000 (10:13 -0500)
committerStephen Worley <sworley@cumulusnetworks.com>
Tue, 9 Jul 2019 14:44:41 +0000 (10:44 -0400)
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/zebra_rib.c

index 9cfaef3a895c714f8f48f12cc4d68016da11da51..afe59b95933483f081ed831abf76203b6e5d078b 100644 (file)
@@ -193,7 +193,7 @@ int zebra_check_addr(const struct prefix *p)
 /* Add nexthop to the end of a rib node's nexthop list */
 void route_entry_nexthop_add(struct route_entry *re, struct nexthop *nexthop)
 {
-       _nexthop_add(&re->ng.nexthop, nexthop);
+       _nexthop_group_add_sorted(&re->ng, nexthop);
        re->nexthop_num++;
 }