File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -737,7 +737,7 @@ int pim_parse_nexthop_update(ZAPI_CALLBACK_ARGS)
737
737
pnc -> last_update = pim_time_monotonic_usec ();
738
738
739
739
if (nhr .nexthop_num ) {
740
- pnc -> nexthop_num = 0 ; // Only increment for pim enabled rpf.
740
+ pnc -> nexthop_num = 0 ;
741
741
742
742
for (i = 0 ; i < nhr .nexthop_num ; i ++ ) {
743
743
nexthop = nexthop_from_zapi_nexthop (& nhr .nexthops [i ]);
@@ -855,7 +855,8 @@ int pim_parse_nexthop_update(ZAPI_CALLBACK_ARGS)
855
855
nhlist_tail = nexthop ;
856
856
nhlist_head = nexthop ;
857
857
}
858
- // Only keep track of nexthops which are PIM enabled.
858
+
859
+ // Keep track of all nexthops, even PIM-disabled ones.
859
860
pnc -> nexthop_num ++ ;
860
861
}
861
862
/* Reset existing pnc->nexthop before assigning new list */
You can’t perform that action at this time.
0 commit comments