From b03e089d4506e423df48efac52a1000689953e92 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 16 May 2019 11:49:19 -0400 Subject: [PATCH] zebra: fix missed multipath_num change The multipath_num global variable was moved into zrouter.multipath_num but this particular usage of it was not updated. Signed-off-by: Donald Sharp --- zebra/zebra_fpm_protobuf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zebra/zebra_fpm_protobuf.c b/zebra/zebra_fpm_protobuf.c index 0f95c9ba8b..3054b8a34d 100644 --- a/zebra/zebra_fpm_protobuf.c +++ b/zebra/zebra_fpm_protobuf.c @@ -34,6 +34,7 @@ #include "qpb/linear_allocator.h" #include "fpm/fpm_pb.h" +#include "zebra_router.h" #include "zebra_fpm_private.h" /* @@ -173,7 +174,7 @@ static Fpm__AddRoute *create_add_route_message(qpb_allocator_t *allocator, */ num_nhs = 0; for (ALL_NEXTHOPS(re->ng, nexthop)) { - if (num_nhs >= multipath_num) + if (num_nhs >= zrouter.multipath_num) break; if (num_nhs >= array_size(nexthops)) -- 2.39.5