We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents eda79af + 3d8814f commit 74aad5aCopy full SHA for 74aad5a
pimd/pim_nht.c
@@ -737,7 +737,7 @@ int pim_parse_nexthop_update(ZAPI_CALLBACK_ARGS)
737
pnc->last_update = pim_time_monotonic_usec();
738
739
if (nhr.nexthop_num) {
740
- pnc->nexthop_num = 0; // Only increment for pim enabled rpf.
+ pnc->nexthop_num = 0;
741
742
for (i = 0; i < nhr.nexthop_num; i++) {
743
nexthop = nexthop_from_zapi_nexthop(&nhr.nexthops[i]);
@@ -855,7 +855,8 @@ int pim_parse_nexthop_update(ZAPI_CALLBACK_ARGS)
855
nhlist_tail = nexthop;
856
nhlist_head = nexthop;
857
}
858
- // Only keep track of nexthops which are PIM enabled.
+
859
+ // Keep track of all nexthops, even PIM-disabled ones.
860
pnc->nexthop_num++;
861
862
/* Reset existing pnc->nexthop before assigning new list */
0 commit comments