From cf05bc9424e73d2644c335cf905f929f4c398ea2 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 24 Jan 2019 10:13:22 -0500 Subject: [PATCH] zebra: Modify zebra to order nexthops received Signed-off-by: Donald Sharp --- zebra/zebra_rib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index 9cfaef3a89..afe59b9593 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -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++; } -- 2.39.5