]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/zebra_fpm_protobuf.c
zebra: print unknown rule family as number
[mirror_frr.git] / zebra / zebra_fpm_protobuf.c
index 0f95c9ba8b7661e7c9065769994ae57915f758cd..c09fa1c65d8a755fc620f97f95011de56c27e212 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"
 
 /*
@@ -172,8 +173,8 @@ static Fpm__AddRoute *create_add_route_message(qpb_allocator_t *allocator,
         * Figure out the set of nexthops to be added to the message.
         */
        num_nhs = 0;
-       for (ALL_NEXTHOPS(re->ng, nexthop)) {
-               if (num_nhs >= multipath_num)
+       for (ALL_NEXTHOPS_PTR(re->nhe->nhg, nexthop)) {
+               if (num_nhs >= zrouter.multipath_num)
                        break;
 
                if (num_nhs >= array_size(nexthops))