summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2019-07-12 20:25:37 +0200
committerGitHub <noreply@github.com>2019-07-12 20:25:37 +0200
commit02a71d10155a4bd0cf0843be030280b300d33f53 (patch)
tree4fbf235fb29b77ba696b7fc54f36c87b067db7a3
parentMerge pull request #4674 from mjstapp/fix_mono_ctime (diff)
parentzebra: Modify zebra to order nexthops received (diff)
downloadfrr-02a71d10155a4bd0cf0843be030280b300d33f53.tar.xz
frr-02a71d10155a4bd0cf0843be030280b300d33f53.zip
Merge pull request #4325 from sworleys/Order-Recv-Nexthops
zebra: Modify zebra to order nexthops received
-rw-r--r--zebra/zebra_rib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c
index 9cfaef3a8..afe59b959 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++;
}