]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: fix missed multipath_num change 4354/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 16 May 2019 15:49:19 +0000 (11:49 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 16 May 2019 15:53:33 +0000 (11:53 -0400)
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 <sharpd@cumulusnetworks.com>
zebra/zebra_fpm_protobuf.c

index 0f95c9ba8b7661e7c9065769994ae57915f758cd..3054b8a34d204ce74e03a7c1ab997fadb8db0b5d 100644 (file)
@@ -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))